I have a sorted ArrayList A and used streams to group by the substring(3,7). I\'m using a large dataset, so I don\'t know all the different substring(3,7) there are.
Arra