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.
1
Expert's answer
2016-10-13T14:05:03-0400
import java.io.IOException;
public class Main { public static void main(String[] args) throws IOException { char ch = (char) System.in.read();
Comments
Leave a comment