为爱奔跑


无论在家出家。必须上敬下和。忍人所不能忍。行人所不能行。代人之劳。成人之美。静坐长思己过。闲谈不论人非。行住坐卧。穿衣吃饭。从幕至朝。一名佛号。不令间断。或小声念。或默念。除念佛外。不起别念。若或妄念一起。当下就要教他消灭。当生惭愧心及忏悔心。从有修持。总觉我工夫很浅。不自矜夸。只管自家。不管人家。只看好样子。不看坏样子。看一切人都是菩萨。唯我一人是凡夫!

http://kb.cnblogs.com/page/176818/

 

package primary;

public class SimplySelectSort {
    public static void main(String[] args){
        int[] array = {2,6,1,9,4,3,23,65,0,7};
        System.out.print("the array before is:");
        for(int i = 0; i <array.length; i++){
            System.out.print(array[i]+"  ");
        }
        System.out.println(" ");
        simplySelectSort(array);
    }
    protected static void simplySelectSort(int[] array){
        int len = array.length;
        for(int i = 0; i < len; i++){
            for(int j = i; j < len; j++){
                if(array[j] < array[i]){
                    int temp = array[j];
                    array[j] = array[i];
                    array[i] = temp;
                }
            }
        }
        for(int z = 0; z < len; z++){
            System.out.print(array[z]+"  ");
        }
    }
}

 

posted on 2015-03-22 19:43  RunforLove  阅读(190)  评论(0编辑  收藏  举报