StreamTokenizer(InputStream is) Deprecated. As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example: Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r);
Why are you using a deprecated constructor?
You should ALWAYS avoid ANY deprecated method or class.TT_EOL indicates that the end of line has been read. The field can only have this value if the eolIsSignificant method has been called with the argument true.
Did you even read the Javadoc?
It says quite clearly that you MUST take a very specific action to ever get that flag returned at all, an action you didn't take.i got this error. what did i do wrong???
That's not an error, it's a warning.
You're compiling against a 1.5 compiler using code that uses collections without properly typing them.
Read up on generics.
jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337