I'm trying to return the array of String but I keep returning [Ljava.lang.String;@1909752 as my answer. Could experts please kindly provide some suggestions to solve this? Thanks in advance!
public String[] getCardNames()
{
String[] namesInHand = new String[CARDS_IN_HAND];
for (int i =0; i < CARDS_IN_HAND; i++)
{
if (hand[i] != null)
{
namesInHand[i] = hand[i].toString();
}
}
return namesInHand;
}