+ 3

How to give input in my program?

I have found a problem of giving input in my program.

14th Jan 2017, 11:40 AM
SAGAR SINGHA ROY
SAGAR SINGHA ROY - avatar
7 ответов
+ 9
import Scanner
14th Jan 2017, 11:41 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
import java.util.Scanner; Scanner var = new Scanner(System.in);
14th Jan 2017, 11:58 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
14th Jan 2017, 11:59 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
I'm from Greece. (why is everyone asking the same lately??)
14th Jan 2017, 12:02 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
can u pls explain me...by an example
14th Jan 2017, 11:57 AM
SAGAR SINGHA ROY
SAGAR SINGHA ROY - avatar
+ 3
gooooood!!! and thanx dear
14th Jan 2017, 12:01 PM
SAGAR SINGHA ROY
SAGAR SINGHA ROY - avatar
+ 3
u r from???
14th Jan 2017, 12:01 PM
SAGAR SINGHA ROY
SAGAR SINGHA ROY - avatar