Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lessons;
- public class MixedIntegerOperations
- {
- public static void main(String[] args)
- {
- short one = 10, two = 20, three;
- three = (short)(one + two);
- // when evaluating two WHOLE NUMBERS the result will always be an int
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement