2013年3月11日

Java Vector (还有待修改)

摘要: Vector<Integer> vector = new Vector<Integer>(); vector.add(2); vector.add(3); vector.remove(0); System.out.println(vector); LinkedList<Integer> list = new LinkedList<Integer>(); list.add(1); list.add(2); list.offer(3); System.out.println(list); Queue<Integer> Q = new Li 阅读全文

posted @ 2013-03-11 19:45 Sure_Yi 阅读(162) 评论(0) 推荐(0) 编辑

Java Clone(类的复制)

摘要: http://blog.csdn.net/ilibaba/article/details/3773545自己实现了一遍:public class A implements Cloneable { public String str[]; A() { str = new String[2]; } public Object clone() { A o = null; try { o = (A) super.clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); }... 阅读全文

posted @ 2013-03-11 11:43 Sure_Yi 阅读(230) 评论(0) 推荐(0) 编辑

导航