So I\'m currently working on a Card War Game in java. I\'m trying to get the GUI screen to print 2 random cards from a set of card images using an arrayList (must use this f
You could create a new list like this using .subList(fromIndex, toIndex)
ArrayList list2= new ArrayList( .subList(0,1))