JAVA中int类型转为String类型

        int i = 12345;
        String s = String.valueOf(i);
        String s1 = Integer.toString(i);

     //最容易的 String s2
= i + ""; System.out.println(s.length());

 

posted @ 2018-05-03 14:05  马鞍山  阅读(661)  评论(0编辑  收藏  举报