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

java¿ìËÙÅÅÐò

/**
 *  Õâ¶Î³ÌÐò²¢²»ÄÑ£¬Ó¦¸ÃºÜºÃ¿´¶®£¬ÎҰѹý³Ì´óÖ½²Ò»Ï£¬Ê×ÏÈÄãµÄÄÔ×ÓÀïÏȸ¡ÏÖÒ»¸öÊý×éºÍÈý¸öÖ¸Õ룬
 *  µÚÒ»¸öÖ¸Õë³ÆΪpÖ¸Õ룬ÔÚÕû¸ö¹ý³Ì½áÊø֮ǰËüÀÎÀεÄÖ¸ÏòµÚÒ»¸öÊý£¬µÚ¶þ¸öÖ¸ÕëºÍµÚÈý¸öÖ¸Õë·Ö±ðΪloÖ¸ÕëºÍhiÖ¸Õ룬
 *  ·Ö±ðÖ¸Ïò×î×ó±ßµÄÖµºÍ×îÓұߵÄÖµ¡£loÖ¸ÕëºÍhiÖ¸Õë´ÓÁ½±ßͬʱÏòÖмä±Æ½ü£¬ÔڱƽüµÄ¹ý³ÌÖв»Í£µÄÓëpÖ¸ÕëµÄÖµ±È½Ï£¬
 *  Èç¹ûloÖ¸ÕëµÄÖµ±ÈpÖ¸ÕëµÄֵС£¬lo++£¬»¹Ð¡»¹++£¬ÔÙСÔÙ++£¬Ö±µ½Åöµ½Ò»¸ö´óÓÚpÖ¸ÕëµÄÖµ£¬ÕâʱÊÓÏßתÒƵ½hiÖ¸Õ룬
 *  Èç¹û hiÖ¸ÕëµÄÖµ±ÈpÖ¸ÕëµÄÖµ´ó£¬hi--£¬»¹´ó»¹--£¬ÔÙ´óÔÙ--£¬Ö±µ½Åöµ½Ò»¸öСÓÚpÖ¸ÕëµÄÖµ¡£
 *  Õâʱ¾Í°ÑloÖ¸ÕëµÄÖµºÍhiÖ¸ÕëµÄÖµ×öÒ»¸öµ÷»»¡£³ÖÐøÕâ¹ý³ÌÖ±µ½Á½¸öÖ¸ÕëÅöÃ棬Õâʱ°ÑpÖ¸ÕëµÄÖµºÍÅöÃæµÄÖµ×öÒ»¸öµ÷»»£¬
 *  È»ºó·µ»ØpÖ¸ÕëеÄλÖá£
 *
 * @author 75-qj
 * @version $Id: QuickSort.java, v 0.1 2010-3-4 ÉÏÎç11:09:35 75-qj Exp $
 */
public class QuickSort {
    /**
     * Ö÷Ëã·¨£¬ÔËÓõݹé
     *
     * @param n        ´ýÅÅÐòµÄÊý×é
     * @param left     Êý×é×ó±ßÐòºÅ
     * @param right    Êý×éÓÒ±ßÐòºÅ
     */
    void quicksort(int n[], int left, int right) {
        int dp;
        if (left < right) {
            dp = partition(n, left, right);
            quicksort(n, left, dp - 1);
            quicksort(n, dp + 1, right); //ÕâÁ½¸ö¾ÍÊǵݹéµ÷Ó㬷ֱðÕûÀí53×ó±ßµÄÊý×éºÍÓұߵÄÊý×é
        }
    }
    /**
     * ·µ»ØÖмäÖµµÄλÖã¬ÏÂÃæÕ⺯Êý¾ÍÊÇ×öÕâ¸öµÄ¡£
     *
    


Ïà¹ØÎĵµ£º

JavaỊ̈߳ºÐÂÌØÕ÷ Ï̳߳Ø

JavaỊ̈߳ºÐÂÌØÕ÷-Ï̳߳Ø
 
SunÔÚJava5ÖУ¬¶ÔJavaÏ̵߳ÄÀà¿â×öÁË´óÁ¿µÄÀ©Õ¹£¬ÆäÖÐÏ̳߳ؾÍÊÇJava5µÄÐÂÌØÕ÷Ö®Ò»£¬³ýÁËÏ̳߳ØÖ®Í⣬»¹Óкܶà¶àÏß³ÌÏà¹ØµÄÄÚÈÝ£¬Îª¶àÏ̵߳ıà³Ì´øÀ´Á˼«´ó±ãÀû¡£ÎªÁ˱àд¸ßЧÎȶ¨¿É¿¿µÄ¶àÏ̳߳ÌÐò£¬Ï̲߳¿·ÖµÄÐÂÔöÄÚÈÝÏÔµÃÓÈΪÖØÒª¡£
 
ÓйØJava5Ïß³ÌÐÂÌØÕ÷µÄÄÚÈÝÈ«²¿ÔÚjava.util ......

JavaỊ̈߳ºÐÂÌØÕ÷ Óзµ»ØÖµµÄÏß³Ì

JavaỊ̈߳ºÐÂÌØÕ÷-Óзµ»ØÖµµÄÏß³Ì
 
ÔÚJava5֮ǰ£¬Ïß³ÌÊÇûÓзµ»ØÖµµÄ£¬³£³£ÎªÁË“ÓД·µ»ØÖµ£¬ÆÆ·ÑÖÜÕÛ£¬¶øÇÒ´úÂëºÜ²»ºÃд¡£»òÕ߸ɴàÈƹýÕâµÀ¿²£¬×ß±ðµÄ·ÁË¡£
 
ÏÖÔÚJavaÖÕÓÚÓпɷµ»ØÖµµÄÈÎÎñ£¨Ò²¿ÉÒÔ½Ð×öỊ̈߳©ÁË¡£
 
¿É·µ»ØÖµµÄÈÎÎñ±ØÐëʵÏÖCallable½Ó¿Ú£¬ÀàËƵģ¬ÎÞ·µ»ØÖµµÄÈÎÎñ±ØÐëRu ......

JavaỊ̈߳ºÐÂÌØÕ÷ ×èÈû¶ÓÁÐ

JavaỊ̈߳ºÐÂÌØÕ÷-×èÈû¶ÓÁÐ
 
×èÈû¶ÓÁÐÊÇJava5Ïß³ÌÐÂÌØÕ÷ÖеÄÄÚÈÝ£¬Java¶¨ÒåÁË×èÈû¶ÓÁеĽӿÚjava.util.concurrent.BlockingQueue£¬×èÈû¶ÓÁеĸÅÄîÊÇ£¬Ò»¸öÖ¸¶¨³¤¶ÈµÄ¶ÓÁУ¬Èç¹û¶ÓÁÐÂúÁË£¬Ìí¼ÓÐÂÔªËصIJÙ×÷»á±»×èÈûµÈ´ý£¬Ö±µ½ÓпÕλΪֹ¡£Í¬Ñù£¬µ±¶ÓÁÐΪ¿Õʱºò£¬ÇëÇó¶ÓÁÐÔªËصIJÙ×÷ͬÑù»á×èÈûµÈ´ý£¬Ö±µ½ÓпÉÓÃÔªËØΪ ......

JavaÅÅÐò·½·¨´óÈ«

°æȨÉùÃ÷£º×ªÔØʱÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂԭʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷
http://as112255.blogbus.com/logs/38662785.html
package com.softeem.jbs.lesson4;
 
import java.util.Random;
 
/**
 * ÅÅÐò²âÊÔÀà
 *
 * ÅÅÐòËã·¨µÄ·ÖÀàÈçÏ£º
 * 1.²åÈëÅÅÐò£¨Ö±½Ó²åÈëÅÅÐò¡¢ÕÛ°ë²åÈëÅÅÐ ......

java,hibernateºÍÊý¾Ý¿â¶ÔÓ¦µÄÊý¾ÝÀàÐÍ


JavaÊý¾ÝÀàÐÍ
HibernateÊý¾ÝÀàÐÍ
±ê×¼SQLÊý¾ÝÀàÐÍ
(PS:¶ÔÓÚ²»Í¬µÄDB¿ÉÄÜÓÐËù²îÒì)
byte¡¢java.lang.Byte
byte
TINYINT
short¡¢java.lang.Short
short
SMALLINT
int¡¢java.lang.Integer
integer
INGEGER
long¡¢java.lang.Long
long
BIGINT
float¡¢java.lang.Float
float
FLOAT
double¡¢java.lang.Doubl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ