Long\long 类型 强转 Integer\int 类型

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();

 

转化记录使用

posted on 2018-09-04 12:18  EastChilde  阅读(2822)  评论(0编辑  收藏  举报

导航