This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void print (String to_print) { | |
System.out.println(to_print); | |
} | |
private static void input (String to_print) { | |
Scanner scanner = new Scanner (System.in); | |
System.out.print(to_print); | |
String name = scanner.next(); // Get what the user types. | |
} |