Answers for "how to read console input java"

6

java taking console input

String str = System.console().readLine();
Posted by: Guest on April-01-2020
1

java read console

public static void main(String[] args) throws IOException {
        
        BufferedReader reader = new BufferedReader(
            new InputStreamReader(System.in));
 
        String name = reader.readLine();
 
        System.out.println(name);
}
Posted by: Guest on September-03-2021

Code answers related to "how to read console input java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language