龙须面

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年6月29日

摘要: 1 import java.io.FileInputStream; 2 import java.io.FileOutputStream; 3 import java.util.Properties; 4 5 public class Property { 6 public static void main(String[] args) { 7 Properties p = new Properties(); 8 int counter = 1; 9 try {10 p.load(new FileInputStr... 阅读全文
posted @ 2012-06-29 18:24 木子小黑 阅读(199) 评论(0) 推荐(0) 编辑

摘要: 1 import java.util.Enumeration; 2 import java.util.Hashtable; 3 4 class TT { 5 private String name = null; //name和age是作为键的 6 private Integer age = 0; 7 8 public TT(String name,int age) { //构造函数没有返回值 9 this.name = name;10 this.age = age;11 }12 /*13 * 要用对象作为键,就要... 阅读全文
posted @ 2012-06-29 15:18 木子小黑 阅读(199) 评论(0) 推荐(0) 编辑