摘要: package sort;public class HuiSu { public static void main(String args[]){ int data[][]={{1,1,1,1,1,1,1,1,1}, //10行9列的迷宫 ... 阅读全文
posted @ 2015-08-02 23:25 吕布布1995 阅读(418) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.util.Arrays;public class MergerSort { public static int arr1[]=new int[10]; public static int arr2[]=new int[10]; pu... 阅读全文
posted @ 2015-08-02 10:50 吕布布1995 阅读(88) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.util.Scanner;public class ShellSort { public static int arr[]; static{ System.out.println("Please enter the arra... 阅读全文
posted @ 2015-08-02 10:05 吕布布1995 阅读(122) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.util.Scanner;public class InsertSort { public static int arr[]; static{ System.out.println("Please enter how man... 阅读全文
posted @ 2015-07-28 21:21 吕布布1995 阅读(100) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.util.Scanner;public class HeapSort { public static int arr[]; static{ System.out.println("Please enter the array... 阅读全文
posted @ 2015-07-28 20:45 吕布布1995 阅读(102) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.util.Scanner;public class QuickSort { public static int[] arr; static{ System.out.println("Enter the array to so... 阅读全文
posted @ 2015-07-27 22:24 吕布布1995 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.util.Scanner;public class SelectionSort { public static int arr[]; static{ System.out.println("Enter the array t... 阅读全文
posted @ 2015-07-27 22:23 吕布布1995 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package array;import java.util.Scanner;public class InputArrayFromKeyboard { public static void main(String args[]){ System.out.println("请输入... 阅读全文
posted @ 2015-07-26 12:01 吕布布1995 阅读(119) 评论(0) 推荐(0) 编辑
摘要: package sort;public class BubbleSort { public static int arr[]=new int[10]; static{ System.out.println("before sort:"); for(int i=... 阅读全文
posted @ 2015-07-26 11:45 吕布布1995 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/breaker892902/article/details/9331425先说一下static 1.static 修饰的域,我们叫静态域,它是归类所有的,被所有对象所共享,只有一个 2.static修饰的区块,域只会初始化一次 3.static修饰的... 阅读全文
posted @ 2015-07-26 11:10 吕布布1995 阅读(133) 评论(0) 推荐(0) 编辑