+ 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 Antworten
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