Hi to every one,
I need some help about the program i am riting. I am a beginner in java and i cant split my input text file to its tokens.
the part of the input file is :
101 Car 06AB1212 100 Y A 3
102 Car 06BG0101 200 Y M 2
202 Motor 34BB123 60 Motor
203 Motor 34CC123 20 Scooter
301 Truck 78AA321 60 B 10
403 Bus 25TT432 200 D 45
11 BerilErtan B
12 BerraCan B
1002 Eti 1983
1003 Gezitur 1999
i wrote a program and the part for tokenize is:
line= BbmReader.getFileReader("input.txt").readLine();
StringTokenizer tokens = new StringTokenizer(line, " ");
while( tokens.hasMoreTokens()&& BbmReader.getFileReader("input.txt").inputAvailable())
System.out.println(tokens.nextToken());
which only tokens one line not the others.
Please help me. Thank you all