Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class Hello {
  2. public static void main(String[] args) {
  3. byte byteV = 127;
  4. short shortV = Short.MAX_VALUE;
  5. int intV = Integer.MAX_VALUE;
  6. System.out.println("Short: " + shortV + ", Integer: " + intV);
  7. long longV = (10 * byteV) + shortV + intV;
  8.  
  9. System.out.println(longV);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement