Hey guys!
I try to split a String at "." But always, when I write:
I just get a String array with a length of 0...
But it works, when I write:
But if in the string are some other ":", it splits there, too, of course...
What can I do now, without writing an extra method, that checks all the chars...?
String[] ExampleArray = ExampleString.split(".");
ExampleString = ExampleString.replace('.',':'); String[] ExampleArray = ExampleString.split(":");