I want to split the input String values separated by one of these char
,
;
blankspace
\
/
in a double array
My code for , is
String valueS[] = input.split(",");
int n = valueS.length;
double yvalue[] = new double[n];
double sum = 0;
for (int i = 0; i < n; i++) {
yvalue[i] = Double.parseDouble(valueS[i]);
}
What is the right syntax that I should put in
String valueS[] = input.split(",");
to split also with the others listed chars?
;andblankspacewill work as same way it is right now working with,. but backslash and forward-slash will be tricky.