截图 第一段代码: 第二段代码: 两段代码出现不同结果的原因:Integer类型的取值范围为-128至128之间,小于128的数(图1)为正确,大于128的数(图2)为错误 转载于:https://www.cnblogs.com/jxxydwt1999/p/10893836.html