Skip to content

Commit 3c93552

Browse files
authored
Create ArrayToString.java
1 parent b64c7cb commit 3c93552

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

arrays/ArrayToString.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.zetcode;
2+
3+
import java.util.Arrays;
4+
5+
public class ArrayToString {
6+
7+
public static void main(String[] args) {
8+
9+
int[][] a = {
10+
{1, 1, 2, 1, 1},
11+
{0, 0, 3, 0, 0}
12+
};
13+
14+
System.out.println(Arrays.toString(a));
15+
System.out.println(Arrays.deepToString(a));
16+
}
17+
}

0 commit comments

Comments
 (0)