+ 1
how to have the user define variabled
I am trying to create a simple programming language using if else if and switch case I want the user to be able to define variables how?
2 Respostas
+ 1
import java.util.Scanner;
class MyClass {
public static void main(String[ ] args) {
Scanner myVar = new Scanner(System.in);
System.out.println(myVar.nextLine());
}
}
I think you mean that, don`t you?
- 1
привет