+ 2
How to ask for user input
please tell me how to ask for user input Well this is for JAVA
3 Réponses
+ 10
refer this👇
https://www.sololearn.com/learn/Java/2220/
+ 3
please specify your language as different languages have different input methods
+ 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();