java function read and display user input code example Example: output statement java System.out.println("Hello World");