自反性(reflexive):对于任何非null的引用X,x.equals(x)必须返回ture 对称性(symmetric):对于任何非null的引用x和y,当且仅当x.equals(y)返回为ture时,y.equals(x)必须返回为true 传递性(transitive):...
分类:
其他好文 时间:
2014-11-15 14:18:39
阅读次数:
223
两个对象值相同(x.equals(y) == true),但却可有不同的hash code,这句话对不对?...
分类:
其他好文 时间:
2014-11-14 12:37:56
阅读次数:
157
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.Fo...
分类:
其他好文 时间:
2014-11-13 22:21:29
阅读次数:
215
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 andsum =...
分类:
其他好文 时间:
2014-11-13 00:16:31
阅读次数:
247
原文:javascript面向对象2首先我们先创建一个对象 var user = Object();
user.name = "张三";
user.age = 20;
user.sex = "男"; 上面呢创建了一个对象,当然创建对象的方法有很多种,但是用这样的方法创建对象比较简单直观,也是Java...
分类:
编程语言 时间:
2014-11-12 22:51:47
阅读次数:
229
首先我们先创建一个对象var user = Object();user.name = "张三";user.age = 20;user.sex = "男";上面呢创建了一个对象,当然创建对象的方法有很多种,但是用这样的方法创建对象比较简单直观,也是JavaScript种创建对象最基本的方法。同时呢也出...
分类:
编程语言 时间:
2014-11-12 21:14:24
阅读次数:
230
(zhaoxudong 2008.10.23晚21.36)。1. 首先equals()和hashcode()这两个方法都是从object类中继承过来的。equals()方法在object类中定义如下: public boolean equals(Object obj) {return (this =...
分类:
编程语言 时间:
2014-11-12 16:20:03
阅读次数:
322
终于到了二叉树。题目如下: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...
分类:
其他好文 时间:
2014-11-12 00:34:07
阅读次数:
244
Problem DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of i...
分类:
其他好文 时间:
2014-11-11 21:01:46
阅读次数:
238
public void saveImage2Phone(SlideShowImage image){ String imagePath; if(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){ ...
分类:
移动开发 时间:
2014-11-11 20:34:38
阅读次数:
202