View Single Post
  #1 (permalink)  
Old 01-30-2008, 05:23 AM
otoro_java otoro_java is offline
Member
 
Join Date: Jan 2008
Posts: 5
otoro_java is on a distinguished road
boolean to string
I'm reading lines from a file and one of the value is boolean.

Code:
while ((aRecord=ins.readLine())!= null) { strings = new StringTokenizer(aRecord,"?"); //toekenizer if (strings.countTokens() == 3) { accountName = strings.nextToken(); accountPhone = strings.nextToken(); accountStatus = strings.nextToken(); //this is boolean }
accountStatus is boolean causes an error. I have tried this:
Code:
accountStatus = strings.nextToken();
still doesn't seem to work.
Reply With Quote
Sponsored Links