fork 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. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. var age=prompt("For the mature only! 18+");
  13. if (age < 18)
  14. {
  15. confirm("You're not ready for this, but I'll let you try it for science.");
  16. }
  17. else
  18. {
  19. confirm("Go ahead! We already got you a radiation suit and laser rifle!");
  20. }
  21. console.log("- You find yourself perusing through the ruins of the lower part of Vault 120 which up until about 10 minutes ago was occupied by the Brotherhood of Steel.");
  22. console.log("- Before you showed up it was just another lazy day shooting at targets and radroaches with their fully modded gauss rifles and laser pistols.");
  23. var die=prompt("do you want to move closer?");
  24. var go=prompt("we can tottally go back now, would you like to go back to the safety of Sanctuary? If you would like to continue raiding Vault 120 type 2 ");
  25. if (go = 2)
  26. {
  27. console.log("You keep moving ahead and come across a dying Brotherhood soldier...");
  28. }
  29. else {
  30. console.log("You pull up your pip-boy to access the copious amounts of weaponry and Brotherhood T-60e Power Armor you managed to aquire, but your eye is suddenly caught by the inventory weight meter. You think to yourself 'Overencumbered? No problem! Codsworth Hold these.");
  31. console.log(" Codsworth says:: But I'm already packed to capacity, Sir! Can't we take a reprieve back to Sanctuary for a nice Radstag Loin and Mutfruit Pie?");
  32. }
  33.  
  34.  
  35.  
  36.  
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:32: error: reached end of file while parsing
}
 ^
1 error
stdout
Standard output is empty