码迷,mamicode.com
首页 >  
搜索关键字:hashset hashcode equals    ( 6917个结果
java向上转型的问题
import java.util.Arrays;import java.util.HashSet;import java.util.Set;class A{ private String s1 = "A1" ; public String s2 = "A2" ; public String get(...
分类:编程语言   时间:2014-11-23 14:20:37    阅读次数:254
collection框架
集合框架(Collection Framework)泛指java.util包的若干个类和接口.如Collection,List,ArrayList,LinkedList,Vector(自动增长数组),HashSet,HashMap等.集合框架中的类主要封装的是典型的数据结构,如动态数组,链表,堆栈,...
分类:其他好文   时间:2014-11-22 15:53:39    阅读次数:193
【Leetcode】【Easy】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 given sum.Fo...
分类:其他好文   时间:2014-11-22 00:43:18    阅读次数:130
url 传中文
if (null == keyword || keyword.equals("关键字")) keyword = ""; if(keyword.length()> 0 ){ boolean isEnChar = true; for(int i = 0 ; i = 19968){ is...
分类:Web程序   时间:2014-11-21 18:19:19    阅读次数:130
C#中的虚方法和抽象方法(Thirteenth Day)
今天在云和学院学了很多,我这次只能先总结一下C#中的虚方法和抽象的运用。理论:?用virtual修饰的方法叫做虚方法?虚方法可以在子类中通过override关键字来重写?常见的虚方法:ToString() Equals实操:定义一个People的父类,包括Name,Gender,Age,和一个Pe....
分类:Windows程序   时间:2014-11-20 23:12:37    阅读次数:305
Hibernat之关系的处理多对多
第一步:编写两个pojo,比如一个学生表一个课程表 这里使用注解。需要课程表: 1 package com.qcf.pox; 2 3 import java.util.HashSet; 4 import java.util.Set; 5 6 import javax.persistence.En.....
分类:其他好文   时间:2014-11-20 20:10:28    阅读次数:239
Hibernat之关系的处理一对多/多对一
第一步:编写两个pojo,比如一个学生表一个班级表 这里使用注解。需要班级表: 1 package com.qcf.pox; 2 3 import java.util.HashSet; 4 import java.util.Set; 5 6 import javax.persistence.Ca.....
分类:其他好文   时间:2014-11-20 20:02:33    阅读次数:163
Path Sum II深度优先找路径
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-20 14:54:26    阅读次数:230
温故而知新-String类
String不算是一种类型,而算是一个类,就是说String不仅可以表示string类型,还有一些自带的方法可以调用。温故而知新,现在给大家总结了String类应该注意的地方。 (1)“==”与“equals”的区别。 当两字符串用“==”比较时,比较的是引用,就是两字符串在内存中是否存储在同一个地方。 而“equals”则是比较两字符串的值。详见代码: {CSDN:CODE:M1m451...
分类:其他好文   时间:2014-11-20 13:47:26    阅读次数:177
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 given sum.Ja...
分类:其他好文   时间:2014-11-20 13:30:27    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!