上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 73 下一页
摘要: import java.util.*;public class EnhancedFor { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5}; for(int i : arr) ... 阅读全文
posted @ 2013-12-03 09:25 小尼人00 阅读(249) 评论(0) 推荐(0) 编辑
摘要: import java.util.Collection;import java.util.HashSet;import java.util.Iterator;public class TestIterator { public static void main(String[] args) {... 阅读全文
posted @ 2013-12-03 08:19 小尼人00 阅读(133) 评论(0) 推荐(0) 编辑
摘要: import java.util.Collection;import java.util.HashSet;public class BasicContainer { public static void main(String[] args) { Collection c = new HashSe... 阅读全文
posted @ 2013-12-02 20:40 小尼人00 阅读(241) 评论(0) 推荐(0) 编辑
摘要: import java.io.File;import java.io.IOException;public class TestFile { public static void main(String[] args) { String separator = File.sepa... 阅读全文
posted @ 2013-12-02 16:59 小尼人00 阅读(177) 评论(0) 推荐(0) 编辑
摘要: public class TestParser { public static void main(String[] args) { Integer i = new Integer(100); Double d = new Double("123.456"); ... 阅读全文
posted @ 2013-12-02 16:40 小尼人00 阅读(149) 评论(0) 推荐(0) 编辑
摘要: package com.bjsxt.chap6;/** * @author hp * */public class Test { public static void main(String[] args) { String s1 = "hello"; String... 阅读全文
posted @ 2013-12-02 10:02 小尼人00 阅读(178) 评论(0) 推荐(0) 编辑
摘要: package com.bjsxt.chap5;public class binarySearch { public static void main(String[] args) { int[] a = {1, 2, 3, 4, 5, 6, 7}; System.... 阅读全文
posted @ 2013-11-26 18:45 小尼人00 阅读(119) 评论(0) 推荐(0) 编辑
摘要: package com.bjsxt.chap5;public class Count3Quit2 { public static void main(String[] args) { KidCircle kc = new KidCircle(500); int co... 阅读全文
posted @ 2013-11-26 17:08 小尼人00 阅读(201) 评论(0) 推荐(0) 编辑
摘要: package com.bjsxt.chap5;public class Count3Quit { public static void main(String[] args) { boolean[] arr = new boolean[500]; for (int... 阅读全文
posted @ 2013-11-25 12:49 小尼人00 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 数组*1 动态初始化*2 静态初始化数组元素的默认初始化 ** 数组是引用类型,它的元素相当于类的成员变量,因此数组分配空间后,每个元素也被按照成员变量的规则被隐式初始化。数组有一个属性 length 指明它的长度package com.bjsxt.chap5;public class TestAr... 阅读全文
posted @ 2013-11-25 10:40 小尼人00 阅读(253) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 73 下一页