Posted By


cetnar on 07/09/06

Tagged


Statistics


Viewed 328 times
Favorited by 1 user(s)

Arrays.deepToString()


/ Published in: Java
Save to your folder(s)

Here's the output:

[java] [[X, O, O], [O, X, X], [X, O, X]]

There are similar methods:
- Arrays.deepHashCode
- Arrays.deepEquals


Copy this code and paste it in your HTML
  1. String[][] ticTacToe = { {"X", "O", "O"},
  2.  
  3. {"O", "X", "X"},
  4.  
  5. {"X", "O", "X"}};
  6.  
  7. System.out.println(Arrays.deepToString(ticTacToe));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.