Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. String stringNum1 = JOptionPane.showInputDialog(null, "enter 1st Integer: ");
  2. String stringNum2 = JOptionPane.showInputDialog(null, "enter 2nd Integer: ");
  3. String stringNum3 = JOptionPane.showInputDialog(null, "enter 3rd Integer: ");
  4.  
  5. int num1 = Integer.parseInt(stringNum1);
  6. int num2 = Integer.parseInt(stringNum2);
  7. int num3 = Integer.parseInt(stringNum3);
  8. //sort the list
  9. String data = "This is the list from largest to smallest:\n";
  10. for (int i=0;i<4;i++)
  11. JOptionPane.showMessageDialog(null, data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement