I am having a problem with tokenizing "wddw". I can tokenize if they is a sign like (,). How can I tokenize this without getting an error. I have tried charAt(0), but it only gives me the first character.
I want each character to be stored separately. I know about split, but I need to use tokenizer
public static void main(String [] args)
{
String temp = "wddw";
StringTokenizer st = new StringTokenizer(temp);
while (st.hasMoreTokens())
{
char del;
String com = st.nextToken();
int x = com.lastIndexOf(com);
del = com.charAt(0);
System.out.println(del);
}