Answers for "java read from console"

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
1

read input from console

variable = input()
Posted by: Guest on July-28-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language