+ 3

Easyest way to take input from user in java

Easyest way to take input from user in java please share me answer

5th Dec 2017, 3:36 AM
Ravi Sharama
Ravi Sharama - avatar
6 Answers
5th Dec 2017, 4:07 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
import java.util.Scanner; //then in the code you do: m=Scanner.in(); Sorry bro, only choice
5th Dec 2017, 3:58 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
0
import java.util.*; String s; Scanner sc=new Scanner(System.in); s=sc.nextLine();
5th Dec 2017, 7:18 AM
PradheepvikišŸ˜ŽšŸ˜€
PradheepvikišŸ˜ŽšŸ˜€ - avatar
0
If int,float anything that sc.nextInt or Float anything u added it is work on it....
5th Dec 2017, 7:19 AM
PradheepvikišŸ˜ŽšŸ˜€
PradheepvikišŸ˜ŽšŸ˜€ - avatar