摘要: package com.bjsxt.others.que; import java.util.ArrayDeque; import java.util.Queue; /** * 使用队列模拟银行存款业务 * @author Administrator * */ public class Demo01 { /** * @param args */ p... 阅读全文
posted @ 2014-10-01 23:17 无名の辈 阅读(246) 评论(0) 推荐(0)
摘要: 冒泡 package com.bjsxt.sort.bubble; import java.util.Arrays; public class BubbleSort1 { /** * @param args */ public static void main(String[] args) { int[] arr ={9,8,7,6,5}... 阅读全文
posted @ 2014-10-01 19:23 无名の辈 阅读(416) 评论(0) 推荐(0)
摘要: package cn.bjsxt.col; /** * 简化迭代器原理 * hasNext * next * @author Administrator * */ public class MyArrayList { private String[] elem ={"a","b","c","d","e","f","g"}; private int size = elem... 阅读全文
posted @ 2014-10-01 12:17 无名の辈 阅读(292) 评论(0) 推荐(0)
摘要: package com.bjsxt.gen02; import java.io.Closeable; import java.io.IOException; /** * 泛型方法 返回类型前面 * 只能访问对象的信息,不能修改信息 * @author Administrator * */ public class TestMethod { /** * @para... 阅读全文
posted @ 2014-10-01 10:55 无名の辈 阅读(292) 评论(0) 推荐(0)