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
Post a Comment