I have created a program with two arraylists (packOfCardsOne
and packOfCardsTwo
) each of which has ten random values stored, I know how to compare the two arraylists but I want to be able to compare individual elements. I as thinking something like this below but I'm unable to get it to work:
if (packOfCardsOne > packOfCardsTwo) {
packofCardsOne.get(0);
packOfCardsTwo.get(0);
}
Once compared as part of the if statement I'd then like to have a print statement with some output.