Skip to content

Instantly share code, notes, and snippets.

@BenMaydan
Created May 20, 2019 18:39
Show Gist options
  • Save BenMaydan/11bd42e8f20fbf748b74db1e88f104bf to your computer and use it in GitHub Desktop.
Save BenMaydan/11bd42e8f20fbf748b74db1e88f104bf to your computer and use it in GitHub Desktop.
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.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment