1、字符串不变性下面这张图展示了这段代码做了什么12String s = "abcd";s = s.concat("ef");2、equals()方法、hashCode()方法的区别HashCode被设计用来提高性能。equals()方法与hashCode()方法的区别在于:如果两个对象相等(equ...
分类:
编程语言 时间:
2014-06-16 00:02:04
阅读次数:
367
最近在看 高级点的程序员必看的 CLR via C# 书中说解释了Object.Equals() 方法的实现, 其中具体的实现用的是== 运算符!以前就对 == 运算符 的具体实现 产生过疑惑 . 它到底对比的什么?今天刚好手头的东西弄完了,而且还得强制加班中 ! 所以就那今天的加班时间 来认真 ....
分类:
其他好文 时间:
2014-06-15 23:32:50
阅读次数:
269
1、左关联查询var lst = from m in db.信息 join d in db.明细信息 on m.单号 equals d.单号 into mi from dt in mi.DefaultIfEmpty() //dt标示右表 where m.单号 == "2014" && dt.编码.S...
分类:
其他好文 时间:
2014-06-15 21:09:49
阅读次数:
189
Given a binary tree and a sum, find all root-to-leaf paths where each path's
sum equals the given sum.
For example:
Given the below binary tree and
sum = 22,
5
...
分类:
其他好文 时间:
2014-06-15 19:55:39
阅读次数:
191
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum
...
分类:
其他好文 时间:
2014-06-15 19:26:23
阅读次数:
207
基本功差的勿看! java 散列与散列码探讨 ,简单HashMap实现散列映射表执行各种操作示列...
分类:
编程语言 时间:
2014-06-15 14:13:25
阅读次数:
247
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that
adding up all the values along the path equals the given sum.
For example:
Given the below bin...
分类:
其他好文 时间:
2014-06-15 09:34:35
阅读次数:
226
一、equals方法的作用 1、默认情况(没有覆盖equals方法)下equals方法都是调用Object类的equals方法,而Object的equals方法主要用于判断对象的内存地址引用是不是同一个地址(是不是同一个对象)。2 、要是类中覆盖了equals方法,那么就要根据具体的代码来确定equ...
分类:
编程语言 时间:
2014-06-14 15:49:58
阅读次数:
262
Path Sum:Given a binary tree and a sum, determine
if the tree has a root-to-leaf path such that adding up all the values along the
path equals the giv...
分类:
其他好文 时间:
2014-06-13 16:09:02
阅读次数:
237
1、字符串不变性下面这张图展示了这段代码做了什么12String s = "abcd";s =
s.concat("ef");2、equals()方法、hashCode()方法的区别HashCode被设计用来提高性能。equals()方法与hashCode()方法的区别在于:如果两个对象相等(equ...
分类:
编程语言 时间:
2014-06-13 14:45:01
阅读次数:
233