I have built a program that will select 5 random cards and display the output as text. I want to add an image to display. In my code i've declared each of the card images, but I'm not quite sure how to tie in the graphic to the output.
if i randomly generate a 5 of clubs., i output the string value "Five Clubs". If i've indicated that imageIcon cicon1 = club7.jpg............I cant then follow up and say that "Five Clubs" = cicon1 can i?
I'm just confused, I don't see how if the code is randmly generating a number i would need to have a million if then statements don't i?