I am studying java, and I am trying to input a value into, then It goes to a for loop.
I did the for loop part. but I am having a hard time on the input.
you want to give Input in command
2.java example "some input string"---the string within quote taken by main method as string args
getting pro grammatically...
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a line:"); System.out.println(stdin.readLine());