复制内容到剪贴板 程序代码
String tagid = "{8}{15}{16}{20}{22}{25}";
List<Integer> lst = new ArrayList<Integer>();
Pattern p = Pattern.compile("\\{(\\d+)\\}");
Matcher m = p.matcher(tagid);
while (m.find()) {
lst.add(Integer.parseInt(m.group(1)));
}
for (int num : lst) {
List<Integer> lst = new ArrayList<Integer>();
Pattern p = Pattern.compile("\\{(\\d+)\\}");
Matcher m = p.matcher(tagid);
while (m.find()) {
lst.add(Integer.parseInt(m.group(1)));
}
for (int num : lst) {