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 -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -