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 f33f6d6

Browse filesBrowse files
committed
Merge pull request giantray#33 from NothingOne/patch-1
Update Declare-array-in-Java.md
2 parents 67d69fa + 7534140 commit f33f6d6
Copy full SHA for f33f6d6

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.