System.out.println("Hello, World!");
// Create a BufferedReader object to read input from the console BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // Prompt the user to enter some text System.out.print("Enter some text: "); // Read the input from the console String input = br.readLine(); // Print the input System.out.println("You entered: " + input);The System class is a part of the java.lang package, which is automatically imported in every Java program.