Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package WhileExempel;
- import javax.swing.JOptionPane;
- public class WhileExempel {
- public static void main(String[] args) throws InterruptedException {
- int i = 1;
- do
- {
- System.out.println("Se en minut gå : " + i);
- Thread.sleep(1000);
- i++;
- }
- while (i<61);
- JOptionPane.showMessageDialog (null, "Grattis du har precis stirrat på nummer i en minut!");
- }
- }
Add Comment
Please, Sign In to add comment