Hello. I am doing a school assignment and I need a bit of help. I have to create a code that will take a text file, import it, tokenize it, and modify the strings that it recieves. I understand that bit, but I'm having trouble tokenizing the strings. I know the token method is obsolete, but this is the method the teacher requested. Following is the bit of code I'm having trouble with:
//Seperating the tokens
wordOne=String.parseStr(strTkn.nextToken());
suffixOne=String.parseStr(strTkn.nextToken());
wordTwo=String.parseStr(strTkn.nextToken());
suffixTwo=String.parseStr(strTkn.nextToken());
wordThree=String.parseStr(strTkn.nextToken());
suffixThree=String.parseStr(strTkn.nextToken());
}
The error I am getting is:
cannot find symbol method parseStr(java.lang.String)