Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Adding integers
- import javax.swing.*;
- class tAddIntegers
- {
- public static void main(String[] param)
- {
- int num1 = 20,
- num2 = 10,
- num3 = 19,
- numTotal = num1 + num2 + num3;
- JOptionPane.showMessageDialog(null,
- "The total of " + num1 + ", " + num2 + " and " + num3 + " is " + numTotal + ".");
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement