Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java È«ÅÅÁÐËã·¨

 import java.util.Arrays;
/**
 * ÇóÒ»¸öÊý×éµÄÈ«ÅÅÁÐËã·¨
 * @author Administrator
 */
public class Pai { 
 public void pai(char[] array,int start,int end){
  System.out.println(" -- ×éºÏ "+start+" µ½ "+end+" --");
  if(start==end){
   System.out.println(array);
  }else{
   for(int i=start; i<end; i++){
    swap(array,start,i);
    pai(array,start+1,end);
    swap(array,start,i);
   }
  }
 }
 
 public void swap(char[] array,int i,int k){
  //System.out.println(Arrays.toString(array) +"   "+ i +" <--> "+k);
  System.out.println("½»»» "+ i +" µ½ "+k);
  char temp = array[i];
  array[i] = array[k];
  array[k] = temp;
 }
 
 public static void main(String[] args) {
  String str = "1234";
  Pai t = new Pai();
  char[] array = str.toCharArray();
  t.pai(array,0,array.length);
 }
}


Ïà¹ØÎĵµ£º

java¶ÁÈ¡ excel Îı¾

 package javatest1014;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
public class ReadExcel{
 
 public static void main(String[] args){
  
  jxl.Workbook workbook=getWorkBook();
        ......

Effective Java¶ÁÊé±Ê¼Ç

package chape8;
import java.math.BigDecimal;
/**
* 8-48
* Èç¹ûÏëÒªÖªµÀ¾«È·µÄ´ð°¸£¬¾ÍÒª±ÜÃâʹÓÃdoubleºÍfloat
¶ÔÓÚ½ðÈÚÐÐÒµÀ´Ëµ£¬¶ÔÊý¾ÝµÄÑÏÕûÐÔÒªÇóÊǺܸߵģ¬²»ÈÝ°ëµãÂí»¢£¬
ÄÇ´ó¼Ò¶¼ÖªµÀÔÙÎÒÃǵÄJavaÓïÑÔÀïÃæÓÐÁ½¸ö¸¡µãÊýÀàÐ͵ıäÁ¿floatºÍdouble£¬
¿ÉÄÜ´ó¼Ò»áÈÏΪËûÃǵľ«¶È¶ÔÓÚ½ðÈÚÐÐÒµÕâÑù¶ÔÊý×Öà ......

Õë¶Ôjava»­ÃæÉÁ˸


     ÈçÌ⣡½â¾öµÄ·½·¨ÊÇÔö¼ÓÒ»¸öÐé±³¾°¡£Ö®ºó°ÑÐé±³¾°Ôö¼Óµ½Ô­À´µÄFrameÉÏ¡£ÓÉÓÚrepaint()µ½paint()ÖмäÉæ¼°µ½update(),ËùÒÔ½â¾öÎÊÌâµÄ
¹Ø¼üÊÇÔÚÖØдupdate(),ÔÚÕâ¸ö·½·¨ÖÐʵÏÖÐé±³¾°µÄÌí¼Ó~~
   @Override
public void update(Graphics g) 
{
if(offScreenImage == null) ......

jakarta regexp (java strutsÕýÔò±í´ïʽ)


  Character Classes
      [abc]                  Simple character class
      [a-zA-Z]            ......

Java Application Ö±½Óͨ¹ýjndiÁ¬½ÓÊý¾Ý¿â

 Ê¹ÓÃjar°ü:
 commons-pool-1.5.3.jar,tomcat-naming-common.jar,commons-pool-1.5.3-bin.zip,commons-dbcp.jar
 ×¢Òâ:jdbc Çý¶¯ÒªÓëÊý¾Ý¿â¼æÈÝ.
 package test.comm;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Hashtable;
import javax.naming.InitialCont ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ