![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Interview
baixue11270526
这个作者很懒,什么都没留下…
展开
-
一道Java题
public class Main { public static void main(String[] args) { Integer f1 = 100, f2 = 100, f3 = 150, f4 = 150; System.out.println(f1 == f2); System.out.println(f3 == f4);...原创 2018-11-27 11:33:18 · 438 阅读 · 0 评论 -
System.out.println(Object x) 打印地址 Or 内容?
简单分析一下为什么System.out.println(Object x)有时候打印内容,有的时候打印一串地址。内部做了哪些操作,我们如何能够打印出我们想要的?先来猜测一下,这例子的两个输出分别是什么? TreeSet<Person> treeSet=new TreeSet<>(); treeSet.add(new Person(10,"name1")); ...原创 2018-12-06 16:52:48 · 934 阅读 · 1 评论