+ 2
Is there any problem with this code?
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
4 Answers
+ 4
No, nothing wrong
+ 3
Why? Is it returning an error?
+ 2
yes it is
0
no