@@ -0,0 +1,815 @@
+package deepestDungeon;%0A%0Aimport java.util.Scanner;%0A%0Apublic abstract class Input %7B%0A%09private static Scanner sc = new Scanner(System.in);%0A%09private Input()%7B%7D;%0A%09public static String getNext()%7B%0A%09%09return sc.nextLine();%0A%09%7D%0A%0A%09public static int getNextInt(boolean manualCheck)%7B //only accepts ints %3E= 0, returns -1 if invalid int, -2 if invalid input.%0A%09%09while(true)%7B%0A%09%09%09String s = sc.nextLine();%0A%09%09%09int i = -2;%0A%09%09%09try%7B%0A%09%09%09%09i = Integer.parseInt(s);%0A%09%09%09%7D%0A%09%09%09catch(Exception e)%7B%0A%09%09%09%09if(manualCheck)%7B%0A%09%09%09%09%09return -2;%0A%09%09%09%09%7D%0A%09%09%09%09System.out.println(%22Please input a valid number.%22);%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%09if(i %3C 0)%7B%0A%09%09%09%09if(manualCheck)%7B%0A%09%09%09%09%09return -1;%0A%09%09%09%09%7D%0A%09%09%09%09System.out.println(%22Please input a number greater than -1.%22);%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%09return i;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static int getNextInt()%7B%0A%09%09return getNextInt(false);%0A%09%7D%0A%0A%7D%0A

Create Input.java