一直以为Interger为空的时候 转为int 会自动赋值为0 后来知道自己sb了 特此记录一下 Integer integer;(integer不能为null) int a=integet.intValue();