Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. else if (year > 2100) {
  2. args;
  3. }
  4.  
  5.  
  6. public static void checkAge();{
  7. I have my arguments in here, I haven't included them as the error is with the above line
  8. }
  9. end;
  10.  
  11. public static boolean checkAge(){
  12. if (age > 13) {
  13. console.log("Yer too old ter play this here game, get yer darrière out o' here!");
  14. age = prompt("What's your age?");
  15. }
  16. else {
  17. console.log("Welcome, young one!");
  18. confirm ("Are you ready to play?");
  19. var year = prompt("What year is it? (Enter a negative number for BC)");
  20. }
  21.  
  22. }
  23. end;
  24.  
  25. public static void checkAge(){
  26.  
  27. public static boolean checkAge(){
  28. return true;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement