+ 4
Explain me in Java. How to get array of "76", "88" and a.length == 2 ? (Answer was found)
https://code.sololearn.com/cb7iCnQZu4Sz/?ref=app https://code.sololearn.com/c6x9vpi8Wf1u/?ref=app https://code.sololearn.com/czmhkext8WgS/?ref=app
6 odpowiedzi
+ 5
But if "-" instead of "." then all good. Why?
+ 5
From:
https://stackoverflow.com/questions/7935858/the-split-method-in-java-does-not-work-on-a-dot
java.lang.String.split splits on regular expressions, and . in a regular expression means "any character".
Try temp.split("\\.")
+ 5
Conclusion: for split use "\\." or "[.]"
+ 4
Pawan thanx
+ 3
UraL you will understand after read this
https://stackoverflow.com/questions/3674930/java-regex-meta-character-and-ordinary-dot
+ 2
Your welcome UraL