문제

What is the best way to parse a String value that looks like this id#1 ...id#398, so I can get de number after the id# String in JAVA.

도움이 되었습니까?

해결책

If id# is a fixed prefix in every ID, I would have used

stringValue.split("id#")[0]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top