Answers for "read consol 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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language