fork(4) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. String newline = System.getProperty("line.separator");
  11. Scanner scan = new Scanner(System.in);
  12. //make variable Lists
  13.  
  14. ArrayList<ArrayList> inventoryList = new ArrayList(
  15. Arrays.asList(new ArrayList<String>(), new ArrayList<Integer>()));
  16. ArrayList<String> studentList = new ArrayList<String>(
  17. Arrays.asList("Giny", "Kamile", "Leah", "Leyla", "Harriet", "Saijal", "Noye", "Sharon", "Ria", "Sarah", "Maria", "Annie", "Blessing", "Vivien", "Katrina"));
  18.  
  19. //Prints the current inventory. If the inventory is empty, tells the user.
  20. public void printInventory() {
  21. if (inventoryList.size() == 0) {
  22. System.out.println("Your pockets are empty!");
  23. }
  24. for (int i = 0; i < inventoryList.size(); i++){
  25. System.out.println((inventoryList.get(1)).get(i) + " : " + (inventoryList.get(0)).get(i));
  26. }
  27. }
  28. //End function
  29.  
  30. //Checks if the item is already in the inventory
  31. public boolean alreadyHaveIt(String item) {
  32. for (int i = 0; i < inventoryList.size(); i++){
  33. if ((inventoryList.get(0)).get(i) == item){
  34. return true;
  35. } else {
  36. return false;
  37. }
  38. }
  39. }
  40. //End function
  41.  
  42. //Adds the passed item to the inventory
  43. public void inventory(String item){
  44. if (alreadyHaveIt(item) == true){
  45. for (int i = 0; i < inventoryList.size(); i++) {
  46. if ((inventoryList.get(0)).get(i) == item){
  47. (inventoryList.get(1)).set(i, ((inventoryList.get(1)).get(i) + 1));
  48. }
  49. }
  50. } else {
  51. (inventoryList.get(1)).add(1);
  52. (inventoryList.get(0)).add(item);
  53. }
  54. }
  55. //End function
  56. boolean cont;
  57. //Print menu of choices, force a valid input, and return their choice as int
  58. public int actionMenu(){
  59. System.out.println("What will you do?");
  60. Thread.sleep(3000);
  61. cont = true;
  62. //Print menu, and force valid input
  63. while (cont == true){
  64. try {
  65. System.out.println("1 - Check inventory" + newline + "2 - Be aggressive" + "3 - Be defensive" + newline + "4 - Quit");
  66. int choice = scan.nextInt();
  67. if (choice == 4) {
  68. System.exit(0);
  69. } else if (choice == 1){
  70. printInventory();
  71. } else {
  72. return choice;
  73. }
  74. }
  75. System.out.println("That wasn't a smart choice! Try again!");
  76. }
  77. }
  78. }
  79. //End function
  80.  
  81. //Print menu of choices, force a valid input, and return their choice as int
  82. public int movementMenu(){
  83. System.out.println("What will you do?");
  84. cont = true;
  85. //Print menu, and force valid input
  86. while (cont); {
  87. Thread.sleep(3000);
  88. try {
  89. System.out.println("1 - Check inventory" + newline + "2 - Turn left" + newline + "3 - Turn right" + newline + "4 - Go Straight" + newline+ "5 - Quit");
  90. choice = scan.nextLine();
  91. if (choice == 5){
  92. System.exit(0);
  93. } else if (choice == 1){
  94. printInventory();
  95. } else {
  96. return choice;
  97. }
  98. }
  99. catch (IllegalValueException y){
  100. System.out.println("That wasn't a smart choice! Try again!");
  101. }
  102. }
  103. }
  104. //End function
  105. //Removes the student from the front of studentList and returns their name as a string
  106. public String removeStudent(){
  107. return studentList[0];
  108. studentList.remove(0);
  109. }
  110. //End function
  111.  
  112. //Removes one unit of the given item from inventory
  113. public void removeItem(String item){
  114. for (i = 0; i < size(inventoryList); i++){
  115. if (inventoryList[i][0] == item) {
  116. if (inventoryList[i][1] > 1) {
  117. inventoryList[i][1] -= 1;
  118. } else {
  119. return inventoryList[i];
  120. inventoryList.remove(i);
  121. }
  122. }
  123. }
  124. }
  125. //Check if game is over, and inform player if yes. End program
  126. public void gameOver(){
  127. if (size(studentList) < 1) {
  128. System.out.println("Oh NOOOO! That was your last classmate! You let them ALL DOWN!" + newline + "GAME OVER.");
  129. System.exit(0);
  130. }
  131. }
  132. //End function
  133.  
  134.  
  135. public static void main(String[] args) throws java.lang.Exception {
  136. cont = true; //boolean for loops
  137. System.out.println("It's nearly Christmas! We've been invited to the North Pole by Santa Himself! Here he comes!");
  138. Thread.sleep(2000);
  139.  
  140. //winsound.PlaySound("Santa Laugh.wav", winsound.SND_FILENAME)
  141.  
  142. //Force correct name entry
  143. while (cont) {
  144. System.out.println("Ho Ho Ho! What's your name?");
  145. name = scan.nextLine;
  146.  
  147. //On multiple lines for spacing reasons
  148. if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
  149. System.out.println("Oh. I had asked for the other class... I guess you'll do.");
  150. cont = False;
  151. } else if (name == "Who laughs like that?") {
  152. System.out.println("GAME OVER. Way to make Santa feel awkward.");
  153. System.exit(0);
  154. } else {
  155. System.out.println("Listen, I'm Santa. I'm kind of a big deal. That's not your name.");
  156. }
  157. }
  158. //End while
  159.  
  160.  
  161. //Remove current player from list
  162. studentList.remove(name);
  163.  
  164. //Flavor text
  165. System.out.println("Now, if you'll come this way, Mr. Anthony has prepared a special feast for us!");
  166.  
  167. //more flavor text
  168. for (i = 0; i < 2; i++) {
  169. Sleep.thread(2000);
  170. System.out.println("...");
  171. Sleep.thread(1000);
  172. }
  173. //End for
  174.  
  175. //Even more flavor text
  176. System.out.println("Almost there! Mind the ga-");
  177. Sleep.thread(3000);
  178. System.out.println("What on Earth? What are the elves up to? Ow! That one just threw a candy cane at me! That hurt!");
  179. Sleep.thread(4000);
  180. System.out.println("The elves are rebelling! Not the face! RUN FOR IT!!!");
  181. Sleep.thread(3000);
  182. System.out.println("There are dozens of them! They're throwing so many candy canes at us! We're not going to make it.... EVERY SANTA FOR HIMSELF!");
  183. Sleep.thread(3000);
  184. System.out.println("With candy canes falling left, right, and center, maybe I could...");
  185. System.out.println("Should I pick up a handful of the candy? (Y/N)");
  186. choice = scan.nextLine;
  187. //If the user takes the candy it is added to the inventory. If they do not the game ends
  188. if (choice == "N") {
  189. System.out.println("You quickly ignore the candy and get back up to run away. As you stand up a candy cane hits you right in the spleen. Death by candy cane.");
  190. System.out.println("GAME OVER.");
  191. Sleep.thread(10000);
  192. System.exit(0);
  193. } else if (choice == "Y") {
  194. System.out.println("Good choice! You place the candy in your pocket.");
  195. inventory("candy cane");
  196. }
  197. cont = true;
  198. while (cont) {
  199. choice = actionMenu();
  200. if (choice == 2) {
  201. System.out.println("Wow! You sure are angry! In your Hulk-rage you grab your candy cane and throw it at an elf. It hits him square on his little elf head and knocks him out! Now run for it!");
  202. removeItem("candy cane");
  203. cont = false;
  204. Sleep.thread(3000);
  205. }
  206. if(choice == 3) {
  207. System.out.println("Being the coward that you are, you try to save yourself. As you run past " + removeStudent() + ", an elf gets a direct hit with one of his evil candy canes. She's blacked out!");
  208. Sleep.thread(3000);
  209. gameOver();
  210. cont = false;
  211. }
  212. }
  213. System.out.println("Exiting the toy factory, you find yourself in the middle of elf town: The most evil place that ever evil'd!");
  214. Sleep.thread(3000);
  215. cont = true;
  216. while (cont) {
  217. choice = movementMenu();
  218. if (choice == 2) {
  219. System.out.println("Turning left, you walk in to a brick wall. " + removeStudent() + " begins to laugh at you. In the process, she slips on the ice, begins to slide down a hill, and falls off a cliff out of sight. Well that's unfortunate.");
  220. cont = false;
  221. Sleep.thread(3000);
  222. gameOver();
  223. }
  224. if(choice == 3) {
  225. System.out.println("Turning right, you see the elf horde quickly approaching. You'd best not go that way.");
  226. Sleep.thread(3000);
  227. }
  228. if(choice == 4) {
  229. System.out.println("Going straight, you run in to a dead-end. The street is lined with elf huts. Elf huts are like houses, but with really tiny doors.");
  230. Sleep.thread(3000);
  231. cont = false;
  232. }
  233. }
  234. cont = True;
  235. while (cont) {
  236. choice = actionMenu();
  237. if (choice == 2) {
  238. System.out.println("Being the aggressive person that you are, you make your stand and face the elvish horde as they charge upon you! The elves run straight past, apparently noticing your rather scrawny stature and deciding that " + removeStudent() + " made a more appealing target. That was the last you saw of them before deciding to run away.");
  239. Sleep.thread(3000);
  240. gameOver();
  241. cont = false;
  242. }
  243. if(choice == 3) {
  244. System.out.println("Deciding that facing an army of angry elves isn't what you studied in school, you quickly run in to the nearby elf hut and close the door behind you. Oh, look at that - you've found some gift-wrapping paper!");
  245. Sleep.thread(3000);
  246. inventory("gift wrapping paper");
  247. cont = false;
  248. }
  249. }
  250.  
  251. //Time to take over!
  252. System.out.println("Our adventure has only just begun! It's time for you to make this game your own! I have set up this code so that you can do all sorts of things. You can give the player morechoices, add in more scenarios, create new items to use, add new sounds, more menu choices,and so much more! I have put in place a system whereby if all your classmates die, the game is over. Think of them as 'lives.' There is a header comment in the code to explain the functions. Have fun - and Merry Christmas!");
  253. Sleep.thread(10000000);
  254. //End function
  255.  
  256.  
  257. main();
  258.  
  259.  
  260. }
  261. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:47: error: bad operand types for binary operator '+'
                	(inventoryList.get(1)).set(i, ((inventoryList.get(1)).get(i) + 1));
                	                                                             ^
  first type:  Object
  second type: int
Main.java:91: error: cannot find symbol
            choice = scan.nextLine();
            ^
  symbol:   variable choice
  location: class Ideone
Main.java:92: error: cannot find symbol
            if (choice == 5){
                ^
  symbol:   variable choice
  location: class Ideone
Main.java:94: error: cannot find symbol
            } else if (choice == 1){
                       ^
  symbol:   variable choice
  location: class Ideone
Main.java:97: error: cannot find symbol
                return choice;
                       ^
  symbol:   variable choice
  location: class Ideone
Main.java:100: error: cannot find symbol
        catch (IllegalValueException y){
               ^
  symbol:   class IllegalValueException
  location: class Ideone
Main.java:108: error: array required, but ArrayList<String> found
    return studentList[0];
                      ^
Main.java:115: error: cannot find symbol
    for (i = 0; i < size(inventoryList); i++){
         ^
  symbol:   variable i
  location: class Ideone
Main.java:115: error: cannot find symbol
    for (i = 0; i < size(inventoryList); i++){
                ^
  symbol:   variable i
  location: class Ideone
Main.java:115: error: cannot find symbol
    for (i = 0; i < size(inventoryList); i++){
                    ^
  symbol:   method size(ArrayList<ArrayList>)
  location: class Ideone
Main.java:115: error: cannot find symbol
    for (i = 0; i < size(inventoryList); i++){
                                         ^
  symbol:   variable i
  location: class Ideone
Main.java:116: error: cannot find symbol
        if (inventoryList[i][0] == item) {
                          ^
  symbol:   variable i
  location: class Ideone
Main.java:116: error: array required, but ArrayList<ArrayList> found
        if (inventoryList[i][0] == item) {
                         ^
Main.java:117: error: cannot find symbol
            if (inventoryList[i][1] > 1) {
                              ^
  symbol:   variable i
  location: class Ideone
Main.java:117: error: array required, but ArrayList<ArrayList> found
            if (inventoryList[i][1] > 1) {
                             ^
Main.java:118: error: cannot find symbol
                inventoryList[i][1] -= 1;
                              ^
  symbol:   variable i
  location: class Ideone
Main.java:118: error: array required, but ArrayList<ArrayList> found
                inventoryList[i][1] -= 1;
                             ^
Main.java:120: error: incompatible types: unexpected return value
                return inventoryList[i];
                                    ^
Main.java:120: error: cannot find symbol
                return inventoryList[i];
                                     ^
  symbol:   variable i
  location: class Ideone
Main.java:121: error: cannot find symbol
                inventoryList.remove(i);
                                     ^
  symbol:   variable i
  location: class Ideone
Main.java:128: error: cannot find symbol
    if (size(studentList) < 1) {
        ^
  symbol:   method size(ArrayList<String>)
  location: class Ideone
Main.java:137: error: non-static variable cont cannot be referenced from a static context
    cont = true; //boolean for loops
    ^
Main.java:144: error: non-static variable cont cannot be referenced from a static context
    while (cont) {
           ^
Main.java:146: error: cannot find symbol
        name = scan.nextLine;
        ^
  symbol:   variable name
  location: class Ideone
Main.java:146: error: non-static variable scan cannot be referenced from a static context
        name = scan.nextLine;
               ^
Main.java:146: error: cannot find symbol
        name = scan.nextLine;
                   ^
  symbol:   variable nextLine
  location: variable scan of type Scanner
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
            ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                              ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                  ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                    ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                       ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                            ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                  ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                      ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                                       ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                                                          ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                                                                             ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                                                                                                ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                                                                                                                     ^
  symbol:   variable name
  location: class Ideone
Main.java:149: error: cannot find symbol
        if (name == "Giny" || name == "Kamile" || name == "Leah" || name == "Leyla" || name == "Harriet" || name == "Saijal" || name == "Noye" || name == "Sharon" || name == "Ria" || name == "Sarah" || name == "Maria" || name == "Annie" || name == "Katrina" || name == "Vivien" || name == "Blessing") {
                                                                                                                                                                                                                                                                                         ^
  symbol:   variable name
  location: class Ideone
Main.java:151: error: non-static variable cont cannot be referenced from a static context
            cont = False;
            ^
Main.java:151: error: cannot find symbol
            cont = False;
                   ^
  symbol:   variable False
  location: class Ideone
Main.java:152: error: cannot find symbol
        } else if (name == "Who laughs like that?") {
                   ^
  symbol:   variable name
  location: class Ideone
Main.java:163: error: cannot find symbol
    studentList.remove(name);
                       ^
  symbol:   variable name
  location: class Ideone
Main.java:163: error: non-static variable studentList cannot be referenced from a static context
    studentList.remove(name);
    ^
Main.java:169: error: cannot find symbol
    for (i = 0; i < 2; i++) {
         ^
  symbol:   variable i
  location: class Ideone
Main.java:169: error: cannot find symbol
    for (i = 0; i < 2; i++) {
                ^
  symbol:   variable i
  location: class Ideone
Main.java:169: error: cannot find symbol
    for (i = 0; i < 2; i++) {
                       ^
  symbol:   variable i
  location: class Ideone
Main.java:170: error: cannot find symbol
        Sleep.thread(2000);
        ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:172: error: cannot find symbol
        Sleep.thread(1000);
        ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:178: error: cannot find symbol
    Sleep.thread(3000);
    ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:180: error: cannot find symbol
    Sleep.thread(4000);
    ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:182: error: cannot find symbol
    Sleep.thread(3000);
    ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:184: error: cannot find symbol
    Sleep.thread(3000);
    ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:187: error: cannot find symbol
    choice = scan.nextLine;
    ^
  symbol:   variable choice
  location: class Ideone
Main.java:187: error: non-static variable scan cannot be referenced from a static context
    choice = scan.nextLine;
             ^
Main.java:187: error: cannot find symbol
    choice = scan.nextLine;
                 ^
  symbol:   variable nextLine
  location: variable scan of type Scanner
Main.java:189: error: cannot find symbol
    if (choice == "N") {
        ^
  symbol:   variable choice
  location: class Ideone
Main.java:192: error: cannot find symbol
        Sleep.thread(10000);
        ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:194: error: cannot find symbol
    } else if (choice == "Y") {
               ^
  symbol:   variable choice
  location: class Ideone
Main.java:196: error: non-static method inventory(String) cannot be referenced from a static context
        inventory("candy cane");
        ^
Main.java:198: error: non-static variable cont cannot be referenced from a static context
    cont = true;
    ^
Main.java:199: error: non-static variable cont cannot be referenced from a static context
    while (cont) {
           ^
Main.java:200: error: cannot find symbol
        choice = actionMenu();
        ^
  symbol:   variable choice
  location: class Ideone
Main.java:200: error: non-static method actionMenu() cannot be referenced from a static context
        choice = actionMenu();
                 ^
Main.java:201: error: cannot find symbol
        if (choice == 2) {
            ^
  symbol:   variable choice
  location: class Ideone
Main.java:203: error: non-static method removeItem(String) cannot be referenced from a static context
            removeItem("candy cane");
            ^
Main.java:204: error: non-static variable cont cannot be referenced from a static context
            cont = false;
            ^
Main.java:205: error: cannot find symbol
            Sleep.thread(3000);
            ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:207: error: cannot find symbol
        if(choice == 3) {
           ^
  symbol:   variable choice
  location: class Ideone
Main.java:208: error: non-static method removeStudent() cannot be referenced from a static context
             System.out.println("Being the coward that you are, you try to save yourself. As you run past " + removeStudent() + ", an elf gets a direct hit with one of his evil candy canes. She's blacked out!");
                                                                                                              ^
Main.java:209: error: cannot find symbol
             Sleep.thread(3000);
             ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:210: error: non-static method gameOver() cannot be referenced from a static context
             gameOver();
             ^
Main.java:211: error: non-static variable cont cannot be referenced from a static context
             cont = false;
             ^
Main.java:215: error: cannot find symbol
    Sleep.thread(3000);
    ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:216: error: non-static variable cont cannot be referenced from a static context
    cont = true;
    ^
Main.java:217: error: non-static variable cont cannot be referenced from a static context
    while (cont) {
           ^
Main.java:218: error: cannot find symbol
        choice = movementMenu();
        ^
  symbol:   variable choice
  location: class Ideone
Main.java:218: error: non-static method movementMenu() cannot be referenced from a static context
        choice = movementMenu();
                 ^
Main.java:219: error: cannot find symbol
        if (choice == 2) {
            ^
  symbol:   variable choice
  location: class Ideone
Main.java:220: error: non-static method removeStudent() cannot be referenced from a static context
            System.out.println("Turning left, you walk in to a brick wall. " + removeStudent() + " begins to laugh at you. In the process, she slips on the ice, begins to slide down a hill, and falls off a cliff out of sight. Well that's unfortunate.");
                                                                               ^
Main.java:221: error: non-static variable cont cannot be referenced from a static context
            cont = false;
            ^
Main.java:222: error: cannot find symbol
            Sleep.thread(3000);
            ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:223: error: non-static method gameOver() cannot be referenced from a static context
            gameOver();
            ^
Main.java:225: error: cannot find symbol
        if(choice == 3) {
           ^
  symbol:   variable choice
  location: class Ideone
Main.java:227: error: cannot find symbol
             Sleep.thread(3000);
             ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:229: error: cannot find symbol
        if(choice == 4) {
           ^
  symbol:   variable choice
  location: class Ideone
Main.java:231: error: cannot find symbol
             Sleep.thread(3000);
             ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:232: error: non-static variable cont cannot be referenced from a static context
             cont = false;
             ^
Main.java:235: error: non-static variable cont cannot be referenced from a static context
    cont = True;
    ^
Main.java:235: error: cannot find symbol
    cont = True;
           ^
  symbol:   variable True
  location: class Ideone
Main.java:236: error: non-static variable cont cannot be referenced from a static context
    while (cont) {
           ^
Main.java:237: error: cannot find symbol
        choice = actionMenu();
        ^
  symbol:   variable choice
  location: class Ideone
Main.java:237: error: non-static method actionMenu() cannot be referenced from a static context
        choice = actionMenu();
                 ^
Main.java:238: error: cannot find symbol
        if (choice == 2) {
            ^
  symbol:   variable choice
  location: class Ideone
Main.java:239: error: non-static method removeStudent() cannot be referenced from a static context
            System.out.println("Being the aggressive person that you are, you make your stand and face the elvish horde as they charge upon you! The elves run straight past, apparently noticing your rather scrawny stature and deciding that " + removeStudent() + " made a more appealing target. That was the last you saw of them before deciding to run away.");
                                                                                                                                                                                                                                                    ^
Main.java:240: error: cannot find symbol
            Sleep.thread(3000);
            ^
  symbol:   variable Sleep
  location: class Ideone
Main.java:241: error: non-static method gameOver() cannot be referenced from a static context
            gameOver();
            ^
Main.java:242: error: non-static variable cont cannot be referenced from a static context
            cont = false;
            ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors
stdout
Standard output is empty