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 8d14553

Browse files
committed
优化"Java中打印一个数组最简单的方法是什么"
1 parent fac2c0d commit 8d14553

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ stackoverflow-Java-top-qa
4343
* [如何用一行代码初始化一个ArrayList](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/initialization-of-an-arraylist-in-one-line.md)
4444
* [初始化静态map](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/How-can-I-Initialize-a-static-Map.md)
4545
* [给3个布尔变量,当其中有2个或者2个以上为true才返回true](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/Check-if-at-least-two-out-of-three-booleans-are-true.md)
46+
* [Java中打印一个数组最简单的方法是什么](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/What's-the-simplest-way-to-print-a-Java-array.md)
4647

4748

4849
> 网络

‎contents/What's-the-simplest-way-to-print-a-Java-array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
java中打印一个数组最简单的方法是什么
1+
Java中打印一个数组最简单的方法是什么
22
===
33
问题
44
---
5-
在java中,数组没有重写toString()方法,所以我如果直接调用数组toStrign()方法的话,我会知道得到它的内存地址。像这样:
5+
在java中,数组没有重写toString()方法,所以我如果直接调用数组toStrign()方法的话,只会得到它的内存地址。像这样:
66
```java
77
int[] intArray = new int[] {1, 2, 3, 4, 5};
88
System.out.println(intArray); // 有时候会输出 '[I@3343c8b3'

0 commit comments

Comments
(0)

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