IntStream
使用:
String[] arr = IntStream.rangeClosed(1, 10).mapToObj(String::valueOf).toArray(String[]::new);
java拼接字符串:
String.join(",",arr)
IntStream
使用:
String[] arr = IntStream.rangeClosed(1, 10).mapToObj(String::valueOf).toArray(String[]::new);
java拼接字符串:
String.join(",",arr)