Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class cast{
  2. public static void main(String [] args)
  3. {
  4. int a=129;
  5. byte b;
  6. float c;
  7. double g;
  8. char n;
  9. b=(byte)a;
  10. c=(float)a;
  11. g=(double)a;
  12. n=(char)a;
  13. System.out.println(b);
  14. System.out.println(c);
  15. System.out.println(g);
  16. System.out.println(n);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement