This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -p password < path_to_import_file –default-character-set = utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final Integer MAX_NUMBER = 3; | |
public static void main(String[] args) { | |
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7); | |
int limit = countStep(list.size()); | |
//方法一:使用流遍历操作 | |
List<List<Integer>> mglist = new ArrayList<>(); | |
Stream.iterate(0, n -> n + 1) | |
.limit(limit) | |
.forEach(i -> mglist.add(list | |
.stream() |