There are a couple of things wrong with this code.
First, you are passing in card.
> public String CardDefine(String card, int symbol, int shuffle)
it really isn't getting used. You could remove that parameter and use "objects" above post. that would do the job.
This is a pass by value but you loose the scope of the card variable when it returns. which explains why it returns deck.JPG.
You could altranately change in CardDefine() line:
> card = cardvalue+"-"+design+".JPG
to
card = new String(cardvalue+"-"+desig
good luck.
Main Topics
Browse All Topics





by: objectsPosted on 2005-05-31 at 17:07:03ID: 14117901
> CardDefine(card, quatro, todo);
you don't do anything with the return value
should be:
cards[quatro][todo] = CardDefine(card, quatro, todo);