+ 1
Comparing Scanner & String (or int , ...)
I want to compare an input with something ---------------- Scanner i = new Scanner (System.in) if (i==1234){...} ---------------- But they are incomparable types (Scanner and int ) What should I do?
1 Respuesta
+ 2
"casting" (Google it)