command line problem
Code for inputting data from the command line
System.out.println("Please Input A Number"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String data = br.readLine(); System.out.println("data is: " + data);
When you will run this code you will find the output as
Please Input A Number 2 data is- 2
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.