锘??xml version="1.0" encoding="utf-8" standalone="yes"?>人妻精品久久无码区,国产高清美女一级a毛片久久w,久久久久久午夜成人影院 http://www.shnenglu.com/vvilp/category/10531.html鐩墠鏈鐥涜嫤鐨勪簨 灝辨槸 鍋氫笉鍑虹浜岄錛侊紒錛侊紒錛?
絎笁棰?OMFG錛侊紒錛侊紒錛?/description>zh-cn Wed, 03 Jun 2009 22:32:53 GMT Wed, 03 Jun 2009 22:32:53 GMT 60 java-------- permutation http://www.shnenglu.com/vvilp/articles/86321.htmlwZt wZt Sun, 31 May 2009 14:24:00 GMT http://www.shnenglu.com/vvilp/articles/86321.html http://www.shnenglu.com/vvilp/comments/86321.html http://www.shnenglu.com/vvilp/articles/86321.html#Feedback 0 http://www.shnenglu.com/vvilp/comments/commentRss/86321.html http://www.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 FileWriter http://www.shnenglu.com/vvilp/articles/85484.htmlwZt wZt Fri, 22 May 2009 16:54:00 GMT http://www.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 PirorityQueue http://www.shnenglu.com/vvilp/articles/83421.htmlwZt wZt Tue, 19 May 2009 14:53:00 GMT http://www.shnenglu.com/vvilp/articles/83421.html http://www.shnenglu.com/vvilp/comments/83421.html http://www.shnenglu.com/vvilp/articles/83421.html#Feedback 0 http://www.shnenglu.com/vvilp/comments/commentRss/83421.html http://www.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://www.shnenglu.com/vvilp/articles/83186.htmlwZt wZt Sun, 17 May 2009 07:19:00 GMT http://www.shnenglu.com/vvilp/articles/83186.html 1 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 sort http://www.shnenglu.com/vvilp/articles/82753.htmlwZt wZt Tue, 12 May 2009 16:31:00 GMT http://www.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 @Override13 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
]]> ReadFile http://www.shnenglu.com/vvilp/articles/82630.htmlwZt wZt Mon, 11 May 2009 14:19:00 GMT http://www.shnenglu.com/vvilp/articles/82630.html 1 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 }
]]>
精品久久人人妻人人做精品 |
一本色道久久HEZYO无码 |
久久99热这里只有精品66 |
久久夜色精品国产噜噜亚洲a
|
狠狠综合久久综合88亚洲 |
97久久超碰国产精品旧版 |
77777亚洲午夜久久多喷 |
影音先锋女人AV鲁色资源网久久
|
国产亚洲美女精品久久久2020 |
一本色道久久88综合日韩精品 |
国产偷久久久精品专区 |
久久久久亚洲AV无码专区体验 |
久久本道久久综合伊人 |
一日本道伊人久久综合影 |
久久久免费精品re6 |
麻豆久久 |
日本高清无卡码一区二区久久
|
国产日韩久久久精品影院首页 |
亚洲精品无码久久一线 |
久久精品成人 |
国产精品欧美久久久久无广告 |
亚洲国产日韩欧美久久 |
精品国产91久久久久久久 |
久久综合给久久狠狠97色 |
久久婷婷人人澡人人爽人人爱 |
色综合久久夜色精品国产 |
日本久久久精品中文字幕 |
欧洲精品久久久av无码电影 |
日韩精品无码久久一区二区三 |
久久久国产精品福利免费 |
久久综合九色综合网站 |
色综合久久无码五十路人妻 |
亚洲国产成人久久综合碰 |
激情久久久久久久久久 |
www.久久热 |
久久精品99久久香蕉国产色戒 |
精品人妻伦九区久久AAA片69 |
久久久久99这里有精品10 |
久久久网中文字幕 |
青青青青久久精品国产h久久精品五福影院1421
|
久久亚洲AV无码西西人体 |