+ 4
Can we use some other var than "myVar".
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println("Hi " + myVar.nextLine() + "! This is my first Java program!!!"); } }
2 Respostas
+ 10
Yes.
Provided you replace myVar at all points in the program with a permissible Identifier that you want
+ 1
well yes