摘要: /** * Created by 刘朋程 on 2014-5-22. */ class Testprivate { private int age = 18; //私有化age并赋值为18 public void setAge(int age) //设置age范围 ... 阅读全文
posted @ 2014-05-22 10:54 liupengcheng 阅读(263) 评论(0) 推荐(0) 编辑
摘要: /** * Created by rabbit on 2014-5-12. */ public class HalfSerach { public static void main(String[] args) { ... 阅读全文
posted @ 2014-05-13 09:56 liupengcheng 阅读(318) 评论(0) 推荐(0) 编辑
摘要: /** * Created by rabbit on 2014-5-9. */ class ArrayTest2 { public static void BubbleSort(int [] arr) //创建冒泡排序方法 { for (int x=0;x<arr.length-1;x+... 阅读全文
posted @ 2014-05-09 17:55 liupengcheng 阅读(279) 评论(0) 推荐(0) 编辑
摘要: /** * Created by rabbit on 2014-5-9. */ class ArrayTest2 { public static void SelectSort(int [] arr) //定义选择排序的方法 { for (int x=0;x<arr.length;x++) ... 阅读全文
posted @ 2014-05-09 15:54 liupengcheng 阅读(198) 评论(0) 推荐(0) 编辑