When trying to output an array with
System.out.println(DHand1[]);
i get an error message '.class' expected
import java.io.*;
public class
Cards {
static int DHand1[] = new int[13]; //Creates the array
/** Creates a new instance of
Cards */
public static void main() {
DHand1[2] = 15; //Assigns position 2 of the array with a value of 15
System.out.println(DHand1[]);
}
}
Any help would be appriciated, thx.