G
Gregory W. Ernest
I am new to Java programming and I was wondering if anyone can tell me the
java equivalent to a cin>>...; that is normally used in c++. I want to get
user input and automatically assign it to a variable. So in other words what
would be the equivant java statement of this c++ statement:
1: cout<<"Enter a number.";
2: cin>>x; //This is what I really want to know. I already know the java
equivalent of the first statement.
java equivalent to a cin>>...; that is normally used in c++. I want to get
user input and automatically assign it to a variable. So in other words what
would be the equivant java statement of this c++ statement:
1: cout<<"Enter a number.";
2: cin>>x; //This is what I really want to know. I already know the java
equivalent of the first statement.