62 548
Assignments Done
98,7%
Successfully Done
In June 2018

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.
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions