+ 1
What's wrong with my code?
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); int num = myVar.nextInt(); System.out.print(num); } }
4 Respostas
+ 9
Nothing, it works.
Which result did you expect? What makes you think there's something wrong?
0
i'm try to run that codes in another apps and got error
0
Can you give us the output?
0
it's fixed. i do wrong in package name. thanks