New course! Every coder should learn Generative AI!
Try a free lesson0
How can i determine the type of the input ?!!
3 Answers
+ 4
What language?
0
java
0
By default input returns a string. You can convert it to an integer using Integer.parseInt(string) I believe.