摘要: Properties prop=new Properties(); prop.load(Client.class.getClassLoader().getResourceAsStream("config.properties")); 阅读全文
posted @ 2014-07-23 14:46 繁落 阅读(237) 评论(0) 推荐(0)
摘要: 1 public class exp2 { 2 /** 3 * 题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子, 4 * 小兔子长到第四个月后每个月又生一对兔子, 5 * 假如兔子都不死,问每个月的兔子总数为多少? 6 * @... 阅读全文
posted @ 2014-07-23 10:23 繁落 阅读(156) 评论(0) 推荐(0)
摘要: 定义被代理对象的接口和接口实现:1 package com.xl;2 public interface Book {3 4 public void addBooks();5 }View Code 1 package com.xl; 2 3 public class BookImpl... 阅读全文
posted @ 2014-07-23 10:18 繁落 阅读(116) 评论(0) 推荐(0)