Monday 27 March 2017

java - Printing out Arrays?

When I print out the coding for




    //display the board
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
Scanner scanner = new Scanner(System.in);
char [][] gameboardTwo = {{'*', '*', 'S', 'T', 'A','R', '*', 'W', 'A', 'R', 'S', '*', '*', '*'}, {'*', '*', 'E','P', 'I', 'S', 'O', 'D', 'E', '*', '*', 'I', 'V', '*'}, {'*', '*', '*','*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*'}, {'*', '*', '*','*', '*', '*', '*', '*', '*', '*', '*', '*', '*', '*'}};
System.out.print(gameboardTwo);
}

}



all I get in return is this:



[[C@75b84c92
Process completed.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...