Skip to content

Commit 7534140

Browse files
committed
Update Declare-array-in-Java.md
1 parent 288d62c commit 7534140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contents/Declare-array-in-Java.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int[] myIntArray = new int[]{1, 2, 3};
1717
```
1818
String[] myStringArray = new String[3];
1919
String[] myStringArray = {"a", "b","c"};
20-
String[] myStringArray = new String[]("a", "b", "c");
20+
String[] myStringArray = new String[]{"a", "b", "c"};
2121
```
2222
[stackoverflow链接:Declare array in Java?](http://stackoverflow.com/questions/1200621/declare-array-in-java)
2323

0 commit comments

Comments
 (0)