how to iterate in List> in java and set their values as we do in a normal int a[i][j] matrix type [duplicate]
I think what you’re asking is how to do this: If you’re unfamiliar with lists in general, reading the answer here should provide valuable information on when to use which type of list