String ids=4,5,6;
String[] st = ids.split(",");
for (String id : st) {
Long id=Long.valueOf(id);
}
java 把string分割并转换为Long
最新推荐文章于 2023-04-12 15:28:28 发布
String ids=4,5,6;
String[] st = ids.split(",");
for (String id : st) {
Long id=Long.valueOf(id);
}