I am trying to do a strTokenizer for a char type i know how to do it for a float and integer which is like this :
-(Float.parseFloat(strTokenizer.nextToken()));
-(Integer.parseInt(strTokenizer.nextToken()));
But i have no idea how to do it with a char please help thank you.
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
char ch = (char) System.in.read();
System.out.println(ch);
}
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF