String s = "";
for (int a = 0; a < list.size(); a++) {
if (s.equals("")) {
s += map.get(list.get(a)) + "";
} else {
s = s + "/" + map.get(list.get(a)) + "";
}
}
java循环拼字符串
最新推荐文章于 2024-08-05 04:26:50 发布