Im reading in a file and each line is as follows
Derek Simons, Jason baker
Jack Smith, Rob Thomson
The problem is with my tokenizer
StringTokenizer st = new StringTokenizer(line, ",");
while(st.hasMoreTokens()){
System.out.println(st.nextToken());
}
the output is
Derek Simons
Jason baker
Jack Smith
Rob Thomson
how can I get rid of that extra blank space? so that the output would be
Derek Simons
Jason baker
Jack Smith
Rob Thomson
Any help is appreciated thanks!