Quote (Eep @ Nov 3 2014 06:20pm)
hrm, that is weird.
Looking at SO, I see this example:
Code
String string = "004-034556";
String[] parts = string.split("-");
String part1 = parts[0]; // 004
String part2 = parts[1]; // 034556
which seems to do what it should and is similar to yours
edit: maybe check your regex? you are doing
Code
"\\s+"
shouldn't it be
Code
"\s+"
Can't do "\s+" says invalid escape sequence
Basically this is my first string
218.0 178.0 9 0.11111111 0.0 0.8333327 0.54772234 1.1111094 0.5443307 59.62963 52.444443 75.22222 51.22222 -21.555555 46.77778 -25.222221 75.22222 0.31899637 -2.0405545 6
I did this just by reading the first line of the file
This post was edited by axumo0 on Nov 3 2014 04:32pm