how can i passing the list from addCard to printHand?
public void addCard(Card c){
ArrayList<String> list= new ArrayList<String>();
list.add(c.toString());
}
public void printHand(){
for(String i:list){
System.out.print(i+" ");
}
}
Thanks