object类型转换为int类型

直接强转不行,这么转

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

posted @ 2018-05-15 20:26  LOGAN彡  阅读(616)  评论(0编辑  收藏  举报