java - useDelimiter not working as expected -


i have code:

in = new scanner(klant); in.usedelimiter(","); while(in.hasnext()) {     system.out.println(in.next()); } 

in variable klant line:

12127,preusterink,m.f.,,15-03-1903,8191 qk,147 

i expect output

12127 preusterink m.f.  15-03-1903 8191 qk 

but i'm getting

12127 preusterink m.f.  15-03-1903 8191  qk 

it seems whitespace still delimiter though set ",". can clear me?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -