标签:number except object cep object类 try orm str div
如何将Object类型转换为int类型
Object object = null; try { Integer.parseInt(object.toString()); } catch (NumberFormatException e) {}
也可以先判定一下是否是Integer
//可以先判定一下是否是Integer Object object = "111"; if (object instanceof Integer) { Integer.parseInt(object.toString()); }
标签:number except object cep object类 try orm str div
原文地址:https://www.cnblogs.com/yanl55555/p/12541563.html