I want to split an array list into smaller separate lists with 6 elements in each of them. For example, a user will input the following information:
HKY SGP 18:00 2 9:00 400
CHN HKY 17:00 3 6:00 500
RRK SSK 19:00 1 7:00 300
These info will be stored into an arraylist. Then i want to separate this arraylist, so that the info will be like this:
List 1: HKY SGP 18:00 2 9:00 400
List 2: CHN HKY 17:00 3 6:00 500
List 3: RRK SSK 19:00 1 7:00 300
This is to compare this lists with another arraylist and extract certain information.
Any help is appreciated and if question is not clear, please do inform me.
Thank you!