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);
}
}
Ïà¹ØÎĵµ£º
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();
......
package chape8;
import java.math.BigDecimal;
/**
* 8-48
* Èç¹ûÏëÒªÖªµÀ¾«È·µÄ´ð°¸£¬¾ÍÒª±ÜÃâʹÓÃdoubleºÍfloat
¶ÔÓÚ½ðÈÚÐÐÒµÀ´Ëµ£¬¶ÔÊý¾ÝµÄÑÏÕûÐÔÒªÇóÊǺܸߵģ¬²»ÈÝ°ëµãÂí»¢£¬
ÄÇ´ó¼Ò¶¼ÖªµÀÔÙÎÒÃǵÄJavaÓïÑÔÀïÃæÓÐÁ½¸ö¸¡µãÊýÀàÐ͵ıäÁ¿floatºÍdouble£¬
¿ÉÄÜ´ó¼Ò»áÈÏΪËûÃǵľ«¶È¶ÔÓÚ½ðÈÚÐÐÒµÕâÑù¶ÔÊý×Öà ......
ÈçÌ⣡½â¾öµÄ·½·¨ÊÇÔö¼ÓÒ»¸öÐé±³¾°¡£Ö®ºó°ÑÐé±³¾°Ôö¼Óµ½ÔÀ´µÄFrameÉÏ¡£ÓÉÓÚrepaint()µ½paint()ÖмäÉæ¼°µ½update(),ËùÒÔ½â¾öÎÊÌâµÄ
¹Ø¼üÊÇÔÚÖØдupdate(),ÔÚÕâ¸ö·½·¨ÖÐʵÏÖÐé±³¾°µÄÌí¼Ó~~
@Override
public void update(Graphics g)
{
if(offScreenImage == null)
......
Character Classes
[abc] Simple character class
[a-zA-Z]   ......
ʹÓÃ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 ......