hi everybody,
I am having problem with "|" character while splitting text or string. but all other characters are working like (/ ; , - _).
Does "|" has a special property or does it related about its ASCII code?
my code is;
String delimeter="0";
int k = 0;
String[] list;
String line = buf.readLine();
while (line != null) {
if(k==0){
line=buf.readLi ne();
k++;
continue;
}
list = line.split(deli meter);
System.out.prin tln(list[0]);
System.out.prin tln(list[1]);
System.out.prin tln(list[2]);
line = buf.readLine();
k++;
}
I am having problem with "|" character while splitting text or string. but all other characters are working like (/ ; , - _).
Does "|" has a special property or does it related about its ASCII code?
my code is;
String delimeter="0";
int k = 0;
String[] list;
String line = buf.readLine();
while (line != null) {
if(k==0){
line=buf.readLi ne();
k++;
continue;
}
list = line.split(deli meter);
System.out.prin tln(list[0]);
System.out.prin tln(list[1]);
System.out.prin tln(list[2]);
line = buf.readLine();
k++;
}
Comment