Guest User

Untitled

a guest
Sep 1st, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public static void main(String[] args) {
  2.        
  3.         JOptionPane.showMessageDialog(null, "Velkommen til det gøyeste gjettespillet i verden!");
  4.  
  5.         Boolean playAgain = true;      
  6.  
  7.         while (playAgain) {
  8.            
  9.             gjetteSpill();
  10.  
  11.             String again = JOptionPane.showInputDialog(null, "Vil du spille igjen? (ja/nei)");
  12.             if(again.equals("ja"))
  13.                 playAgain = true;
  14.             else
  15.                 playAgain = false;
  16.         }
  17.  
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment