level 1
public static void main(String[] args) {
String template = "123456";
List<Character> result = new ArrayList<>();
for (int i = 0; i < template.length(); i++) {
result.add(template.charAt(i));
}
// 1, 2, 3, 4, 5, 6
String resultStr = result.toString().replaceAll("(\\[|\\])","");
System.out.println(resultStr);
}
2021年12月09日 07点12分