Answer to Question #62644 in Java | JSP | JSF for Emily

Question #62644
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();

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS