Say we have a HashMap of keys and values, where keys are Integers and values are Lists, then I throw construct a treeMap using the hashMap to put it in order:
Map<Integer, List<Boolean>> map = new HashMap<>();
Map<Integer, List<Boolean>> orderedMap = new TreeMap<>(map);
If I were to do
map.entrySet().forEach(entry -> System.out.println(entry.getKey() + ": " + entry.getValue())
It spits out each and every key with its value after every line. This is something that I'm going for but I think its easier on the eye to maybe print out certain rows x columns. Maybe possibly printing 10 keys:values per row before moving onto the next one, or preferably maybe printing out 10 keys:values in order in the first column, and then the next column print the next 10 and so forth until it reaches the end (last column does not have to be exactly 10), but I have no idea how to reach this goal
Sample output wanted:
entry1 entry11 ...
entry2 entry12
entry3 entry13
entry4 entry14
entry5 entry15
entry6 .
entry7 .
... .
entry10 entry20