注意:不能强制转换!!! Object a; int b = Integer.parseInt(String.valueOf(a)); 转载于:https://www.cnblogs.com/xww115/p/10537573.html