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

   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);
}

猜你喜欢

转载自www.cnblogs.com/cuixiaomeng/p/10007962.html