Can anyone give me a basic script that takes a string and converts it into a characters using the nexttoken command to get the next char for searching purposes.

I used the buffered reader to get the line. Then a string tokenizer to get it into seperate words. I have no idea on getting the words broken into chars

Alright I got it into an array... Now I can't get through the array. I'm using a for loop to search character by character. At the end of the first character array i get an exception error and cant get past that part. Any other ideas for a way to get through the character array.

Thats the best way to get through an array - is the exception error a arrayoutofbounds one? Check your i<whatever bit in the forloop - it may trying to check out more spaces in the array than there actually are.


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.