I'm guessing (since you don't mention what type of object the tokenizer is) that the tokenizer is a StreamTokenizer object. The tokenizer.nval is a double, so you are trying to cast a double into a String which you can't do in Java! Thats why you get the error message.
|