码迷,mamicode.com
首页 >  
搜索关键字:public    ( 82854个结果
父类中可继承方法在处理private的一个demo
public abstract class AbstractParent { public AbstractParent() { System.out.println("Hello,parent"); } protected void earnMoney() { prepare(); doJob()
分类:其他好文   时间:2016-02-19 12:32:57    阅读次数:109
ArrayList源码
1.首先看对ArrayList的定义: public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, java.io.Serializable 从ArrayList<E>可
分类:其他好文   时间:2016-02-19 12:30:06    阅读次数:222
获取Java系统相关信息
1 package com.test; 2 3 import java.util.Properties; 4 import java.util.Map.Entry; 5 6 import org.junit.Test; 7 8 public class SystemTest { 9 10 /** 1
分类:编程语言   时间:2016-02-19 12:19:08    阅读次数:144
古诗MySQL数据库DAO模式实现
整体规则 step1 DBHelper工具类,一般不用实例化,因此可以采用Singleton或者是将构造方法私有化。 /** * Created by chuiyuan on 2/17/16. * 工具类,一般不要实例化,此时可以采用单例设计模式,或者将构造方法私有化 */ public class
分类:数据库   时间:2016-02-19 12:15:45    阅读次数:195
php反射方法信息
<?phpclass ReflectionFunction implements Reflector{ final private __clone() public object __construct(string name) public string __toString() public s
分类:Web程序   时间:2016-02-19 12:06:55    阅读次数:179
从头认识Spring-2.7 自动检测Bean(3)-过滤器<context:exclude-filter/>
这一章节我们来讨论一下过滤器的使用。1.domainPerson接口:package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_21; public interface Person { } 拳击手类:package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_21; i...
分类:编程语言   时间:2016-02-19 10:49:59    阅读次数:246
从头认识Spring-2.7 自动检测Bean(2)-过滤器<context:include-filter/>
这一章节我们来讨论一下过滤器的使用。1.domainPerson接口:package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_20; public interface Person { } 拳击手类:package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_20; i...
分类:编程语言   时间:2016-02-19 10:49:33    阅读次数:174
关于i++ 和 ++i
public class Test_i { public static void main(String[] args) { int i = 0; System.out.println("运算前i为"+i+"执行"+ i++ +",此时i为"+i); System.out.println("运算前i为"+i+"执行"+ ++i +",此时i为"...
分类:其他好文   时间:2016-02-19 10:43:38    阅读次数:188
1/设计邮箱登录
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.
分类:其他好文   时间:2016-02-19 10:39:00    阅读次数:159
递归算法
public int ShuZi(int i) { int sum = 0; if (i <= 0) { sum = 0; } else if (i == 1 || i == 2) { sum = 1; } else { sum = ShuZi(i-1) + ShuZi(i-2); } return
分类:编程语言   时间:2016-02-19 10:35:49    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!