Skip to content

Instantly share code, notes, and snippets.

View bartenbach's full-sized avatar

blake bartenbach

  • Omaha, NE
  • 01:14 (UTC -05:00)
View GitHub Profile
Scanner scn = new Scanner(System.in);
System.out.println("Want to play again? (y/n)");
String in;
do (in = scn.next()) {
System.out.println("Enter y for yes, or n for no:")
} (while !in.equalsIgnoreCase("y") && !in.equalsIgnoreCase("n"));