关于object对象转换为int类型

注意:不能强制转换!!!

Object a;

int b = Integer.parseInt(String.valueOf(a));

猜你喜欢

转载自www.cnblogs.com/xww115/p/10537573.html
今日推荐