Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7534140

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /