StringTokenizer versus Scanner concerning the delimiter
The old fashioned Token class has the constructor StringTokenizer(...):
StringTokenizer st = new StringTokenizer(data, "\t", true);
Where if true "st" includes the delimiter.
How could one get a similar result with the newer scanner class?
Scanner sc = new Scanner(data);
But now "sc" does not include the tabs, but I want them to be there...
So what to do?
Re: StringTokenizer versus Scanner concerning the delimiter
Closing this duplicate.
You should know better than to double post...