+ 2

How to ask for user input

please tell me how to ask for user input Well this is for JAVA

15th Apr 2018, 4:04 AM
Rishabh
3 Réponses
15th Apr 2018, 8:58 AM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 3
please specify your language as different languages have different input methods
15th Apr 2018, 4:07 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
1. Use Scanner: - Scanner sc=new Scanner (System.in); -String a=sc.nextLine(); 2. Use BufferedReader: -BufferedReader b=new BufferedReader(new InputStreamReader(System.in)); -String a= b.nextLine();
15th Apr 2018, 1:31 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar