将字符串中的数字转化为文字

   String ids = "1,2,3";
String[] industryIdsArr = ids.split(",");
String str = "";
if (industryIdsArr != null && industryIdsArr.length > 0) {
for (int i = 0; i < industryIdsArr.length; i++) {
str += 1 + ",";
}
}
str = str.substring(0, str.length() - 1);
System.out.println(str);
}

 

posted @ 2018-11-23 15:39  春眠不觉笑  阅读(676)  评论(0编辑  收藏  举报