object类型转换为int类型

直接强转不行,这么转

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

猜你喜欢

转载自blog.csdn.net/qq_40280200/article/details/80328800