摘要: public static void printCalendar(Calendar calendar) {System.out.println(calendar.get(Calendar.YEAR) + "年"+ getDate(calendar.get(Calendar.MONTH) + 1) +... 阅读全文
posted @ 2015-06-22 22:06 G.J.B 阅读(370) 评论(0) 推荐(0) 编辑
摘要: /** Collection接口特点和方法* Collection集合中的顶层接口,方法,所有的小弟包括子接口,和实现类都具备* * 实现类的支持 ArrayList*/import java.util.*;public class CollectionDemo {public static voi... 阅读全文
posted @ 2015-06-22 22:03 G.J.B 阅读(115) 评论(0) 推荐(0) 编辑
摘要: /** List接口有什么特点* List是一个有序的集合 有序:存储的顺序和取出的顺序一致* List是一个有索引的集合* List可以存储重复元素** List接口的特有方法,带索引的方法*/import java.util.*;public class ListDemo {public... 阅读全文
posted @ 2015-06-22 22:02 G.J.B 阅读(96) 评论(0) 推荐(0) 编辑
摘要: /* * String类转换功能 */public class StringTestTransform { public static void main(String[] args) { method_4(); } /* * 拼接字符串 * public String concat(Str... 阅读全文
posted @ 2015-06-22 21:59 G.J.B 阅读(159) 评论(0) 推荐(0) 编辑
摘要: /* * String类获取功能 */public class StringTestAcquire{ public static void main(String[] args) { method_9(); } /* * String类的获取方法 * public String subst... 阅读全文
posted @ 2015-06-22 21:58 G.J.B 阅读(312) 评论(0) 推荐(0) 编辑
摘要: public class ZhuFengTest1 { public static void main(String[] args){ int count=0; //叠的次数 int h=884800; //峰的高度 int l=1; //定义纸的厚度为0.01 变成... 阅读全文
posted @ 2015-06-22 21:55 G.J.B 阅读(182) 评论(0) 推荐(0) 编辑
摘要: /** * ObjectTools类,是一个数组操作的工具类 * 里面的方法全静态 * 包括 数组的遍历,获取最大值,数组的反转,数组中元素的查找 * @author ALSTON * version:1.0 */public class ArrayTools { /** * printArra... 阅读全文
posted @ 2015-06-22 21:49 G.J.B 阅读(449) 评论(0) 推荐(0) 编辑