锘??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 GMT60- java-------- 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.html

public 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[] =
{ 1, 1, 2, 2 };
n = a1.length;
a = a1;
Arrays.sort(a);
search(0);
}
}

]]> - 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();
}

]]>- 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.html

class 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()+" ");}
}
}

]]> - 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
}

]]> - 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
//鏂規硶浜?==================================
2
class 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
}
14
public 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
}
1
import java.math.*;
2
import java.util.*;
3
import java.io.*;
4
//鏂規硶涓===============================================================
5
class data
{
6
public int i;
7
public int j;
8
9
}
10
11
class 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
19
public 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

]]> - 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
}

]]>
一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区
|
久久强奷乱码老熟女网站|
日韩欧美亚洲国产精品字幕久久久|
久久综合久久久|
久久国产精品视频|
久久SE精品一区二区|
狠狠狠色丁香婷婷综合久久五月
|
国内精品久久久久久99蜜桃|
久久精品国产久精国产|
亚洲精品国产综合久久一线|
久久精品欧美日韩精品|
欧美国产精品久久高清|
国产国产成人精品久久|
亚洲欧美一级久久精品|
日本精品久久久久中文字幕8|
国产精品久久新婚兰兰|
久久精品无码一区二区三区|
人妻无码精品久久亚瑟影视
|
久久一区二区三区免费|
久久婷婷五月综合国产尤物app|
91秦先生久久久久久久|
色欲久久久天天天综合网精品|
欧美亚洲日本久久精品|
久久综合丁香激情久久|
A狠狠久久蜜臀婷色中文网|
中文字幕久久亚洲一区|
久久久WWW免费人成精品|
国产成人精品白浆久久69|
无码人妻久久一区二区三区|
久久伊人中文无码|
久久久久亚洲av成人无码电影
|
久久久久久综合一区中文字幕|
一本色道久久88—综合亚洲精品|
香蕉99久久国产综合精品宅男自|
成人国内精品久久久久影院VR|
精品国产一区二区三区久久久狼|
久久久亚洲裙底偷窥综合|
97久久国产露脸精品国产|
久久久久青草线蕉综合超碰|
久久天天躁狠狠躁夜夜躁2014|
精品国产日韩久久亚洲|