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

Appearance settings

Commit 7534140

Browse filesBrowse files
committed
Update Declare-array-in-Java.md
1 parent 288d62c commit 7534140
Copy full SHA for 7534140

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎contents/Declare-array-in-Java.md

Copy file name to clipboardExpand all lines: contents/Declare-array-in-Java.md
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.