long ->
int |
long x = 10;
int y = (
int) x;
Long -> Integer | Long x = (
long) 10; Integer y =
x.intValue();
int ->
long |
int x = 10 ;
long y = (
long) x;
Integer -> Long | Integer x = 10; Long y = x.longValue();
转载于:https://www.cnblogs.com/PinkPink/p/10101033.html