Answers for "read from console java"

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