Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- JOptionPane.showMessageDialog(null, "Velkommen til det gøyeste gjettespillet i verden!");
- Boolean playAgain = true;
- while (playAgain) {
- gjetteSpill();
- String again = JOptionPane.showInputDialog(null, "Vil du spille igjen? (ja/nei)");
- if(again.equals("ja"))
- playAgain = true;
- else
- playAgain = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment