object类型转换为int类型

直接强转不行,这么转

Object o=query.uniqueResult();
        int a=Integer.parseInt(String.valueOf(o));  

原文地址:https://www.cnblogs.com/fengnan/p/9311961.html