锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久久久久,伊人色综合久久天天人守人婷,精品国际久久久久999波多野http://m.shnenglu.com/vvilp/category/10531.html鐩墠鏈鐥涜嫤鐨勪簨 灝辨槸 鍋氫笉鍑虹浜岄錛侊紒錛侊紒錛? 絎笁棰?OMFG錛侊紒錛侊紒錛?/description>zh-cnWed, 03 Jun 2009 22:32:53 GMTWed, 03 Jun 2009 22:32:53 GMT60java-------- permutationhttp://m.shnenglu.com/vvilp/articles/86321.htmlwZtwZtSun, 31 May 2009 14:24:00 GMThttp://m.shnenglu.com/vvilp/articles/86321.htmlhttp://m.shnenglu.com/vvilp/comments/86321.htmlhttp://m.shnenglu.com/vvilp/articles/86321.html#Feedback0http://m.shnenglu.com/vvilp/comments/commentRss/86321.htmlhttp://m.shnenglu.com/vvilp/services/trackbacks/86321.htmlpublic class Permutation {
    
static int n;
    
static int[] a;

    
static boolean ifok(int k, int i) {
        
if (k < i) {
            
for (int t = k; t < i; t++{
                
if (a[t] == a[i])
                    
return false;
            }

        }

        
return true;
    }


    
static void search(int k) {
        
if (k == n) {
            
for (int i : a) {
                System.out.print(i 
+ "");
            }

            System.out.println();
            
return;
        }

        
for (int i = k; i < n; i++{
            
if (ifok(k, i)) {
                
int tmp = a[k];
                a[k] 
= a[i];
                a[i] 
= tmp;
                search(k 
+ 1);
                tmp 
= a[k];
                a[k] 
= a[i];
                a[i] 
= tmp;
            }

        }

    }


    
public static void main(String[] args) {
        
int a1[] = 1122 };
        n 
= a1.length;
        a 
= a1;
        Arrays.sort(a);
        search(
0);
    }

}


wZt 2009-05-31 22:24 鍙戣〃璇勮
]]>
java FileWriterhttp://m.shnenglu.com/vvilp/articles/85484.htmlwZtwZtFri, 22 May 2009 16:54:00 GMThttp://m.shnenglu.com/vvilp/articles/85484.html 

    public static void main(String[] arg) throws IOException {
        FileWriter q 
= new FileWriter(
                
new File("c:\\1.txt"));
        
        BufferedWriter k
=new BufferedWriter(q);
        k.write(
"asdsad");
        k.close();
    }


wZt 2009-05-23 00:54 鍙戣〃璇勮
]]>
java PirorityQueuehttp://m.shnenglu.com/vvilp/articles/83421.htmlwZtwZtTue, 19 May 2009 14:53:00 GMThttp://m.shnenglu.com/vvilp/articles/83421.htmlhttp://m.shnenglu.com/vvilp/comments/83421.htmlhttp://m.shnenglu.com/vvilp/articles/83421.html#Feedback0http://m.shnenglu.com/vvilp/comments/commentRss/83421.htmlhttp://m.shnenglu.com/vvilp/services/trackbacks/83421.htmlclass data implements Comparable {
    
int a;
    
int b;
@Override
    
public int compareTo(Object o) {
        
return a - ((data) o).a;
    }

    
public String toString(){
        
return Integer.toString(this.a)+"::"+Integer.toString(this.b);
    }

}

public class test {
    
public static void main(String[] args) {
        data[] temp 
= new data[10];
        PriorityQueue
<data> q=new PriorityQueue<data>();
        
for (int i = 0, j = 10; i < 10; i++, j--{
            temp[i] 
= new data();
            temp[i].a 
= j;
            temp[i].b 
= i;
            q.add(temp[i]);
        }

        
//Arrays.sort(temp);
        while(q.peek()!=null){
        System.out.println(q.remove()
+" ");}

    }

}


wZt 2009-05-19 22:53 鍙戣〃璇勮
]]>
StringTokenizer!!!!!http://m.shnenglu.com/vvilp/articles/83186.htmlwZtwZtSun, 17 May 2009 07:19:00 GMThttp://m.shnenglu.com/vvilp/articles/83186.html1        String a="1,2|3 4,5:6,7,8";
2        StringTokenizer test=new StringTokenizer(a," ,:|");
3        while(test.hasMoreTokens()){
4            System.out.print(test.nextToken());
5        }


wZt 2009-05-17 15:19 鍙戣〃璇勮
]]>
java class sorthttp://m.shnenglu.com/vvilp/articles/82753.htmlwZtwZtTue, 12 May 2009 16:31:00 GMThttp://m.shnenglu.com/vvilp/articles/82753.html 

 1//鏂規硶浜?==================================
 2class data implements Comparable {
 3    int a;
 4    int b;
 5
 6    @Override
 7    public int compareTo(Object o) {
 8        return a - ((data) o).a;
 9    }

10    public String toString(){
11        return Integer.toString(this.a)+","+Integer.toString(this.b);
12    }

13}

14public class test {
15    public static void main(String[] args) {
16        data[] temp = new data[10];
17        for (int i = 0, j = 10; i < 10; i++, j--{
18            temp[i] = new data();
19            temp[i].a = j;
20            temp[i].b = i;
21        }

22        Arrays.sort(temp);
23        System.out.println(Arrays.asList(temp));
24    }

25}

 

 1import java.math.*;
 2import java.util.*;
 3import java.io.*;
 4//鏂規硶涓===============================================================
 5class data {
 6    public int i;
 7    public int j;
 8
 9}

10
11class cmp implements Comparator {
12    @Override
13    public int compare(Object o1, Object o2) {
14        return ((data) o1).i - ((data) o2).i;//浠庡皬鍒板ぇ
15        // return 0;
16    }

17}

18
19public class test {
20
21    public static void main(String[] arg) {
22
23        data[] a = new data[10];
24        
25        for(int i=0,j=10;i<10;i++,j--){
26            a[i]=new data();//姣忔蹇呴』鍒濆鍖?br>27            a[i].i=i;
28            a[i].j=j;
29        }

30        
31        Arrays.sort(a,new cmp());
32        
33        for(int i=0;i<10;i++){
34            System.out.print(a[i].i+" ");
35        }

36
37    }

38}

39


wZt 2009-05-13 00:31 鍙戣〃璇勮
]]>
ReadFilehttp://m.shnenglu.com/vvilp/articles/82630.htmlwZtwZtMon, 11 May 2009 14:19:00 GMThttp://m.shnenglu.com/vvilp/articles/82630.html1    public static void main(String[] arg) throws IOException {
2        FileReader q = new FileReader(
3                "G:\\project\\java\\topcoder\\test\\src\\test.java");

4        BufferedReader k = new BufferedReader(q);

5        String s;
6        while ((s = k.readLine()) != null{
7            System.out.println(s);

8        }

9    }


wZt 2009-05-11 22:19 鍙戣〃璇勮
]]>
久久e热在这里只有国产中文精品99 | 久久天天躁狠狠躁夜夜不卡| 久久天天躁狠狠躁夜夜2020老熟妇 | 美女写真久久影院| 麻豆国内精品久久久久久| 综合久久国产九一剧情麻豆| AV无码久久久久不卡蜜桃| 久久无码人妻精品一区二区三区| 亚洲综合熟女久久久30p| 国产99久久九九精品无码| 久久人人爽人人爽人人片AV不 | 精品久久久久久无码人妻热| 久久亚洲日韩看片无码| 99久久精品费精品国产| 人妻无码久久一区二区三区免费| 国内精品欧美久久精品| 日韩人妻无码精品久久免费一 | 日韩人妻无码精品久久久不卡 | 精品人妻伦一二三区久久| 人妻少妇久久中文字幕一区二区 | 久久se精品一区二区| 国产69精品久久久久9999APGF| 国产免费福利体检区久久| 久久超乳爆乳中文字幕| 久久久久se色偷偷亚洲精品av| 久久精品一区二区三区中文字幕| 99久久精品国产免看国产一区| 亚洲va久久久噜噜噜久久男同| 婷婷久久综合| 中文字幕精品无码久久久久久3D日动漫 | 久久国产精品成人影院| 狠狠色婷婷久久综合频道日韩| 中文成人无码精品久久久不卡 | 国内精品久久久久久久coent| 欧美伊香蕉久久综合类网站| 久久精品国产一区二区三区日韩| 欧洲精品久久久av无码电影| 久久久精品人妻一区二区三区蜜桃| 无码精品久久久久久人妻中字| 久久精品水蜜桃av综合天堂| 国产亚洲精品自在久久|