ʹÓÃJavaʵÏÖÁ´±í
ÌâÄ¿£ºÊ¹ÓÃJavaʵÏÖÁ´±í
˼·£º
Á´±íµÄÌØµã£ºÁ´±íµÄµÄÔªËØÖ®¼äͨ¹ýÖ¸ÕëÁ¬½ÓÆðÀ´¡£Í¨³£ÓÐÒ»¸öÍ·Ö¸ÕëÖ¸ÏòµÚÒ»¸öÔªËØ£¬Í¨¹ýµÚÒ»¸öÔªËØ¿ÉÒÔ·ÃÎʵ½ÆäËûµÄÔªËØ¡£
Á´±íÖÐÊý¾ÝÈçºÎ´æ´¢£ºÁ´±íÖеÄÿ¸öÔªËØÓ¦¸ÃÓɱíʾÊý¾ÝµÄÓòºÍÖ¸ÏòÆäËûÔªËØµÄÖ¸Õë×é³É¡£
Á´±íµÄ³£ÓòÙ×÷£º´´½¨Á´±í¡¢ÔÚÁ´±íÖÐÌí¼ÓÔªËØ£¨ÔÚ×îºóÌí¼Ó»òÕßÔÚij¸ö¾ßÌåµÄλÖÃÌí¼Ó£©¡¢ÐÞ¸ÄÁ´±íÖеÄÔªËØ¡¢É¾³ýÁ´±íÖеÄÔªËØ¡¢²é¿´Á´
±íÖеÄÔªËØ¡£
public class MyList{
private Element header;
public MyList(){}
public MyList(Object o){
header = new Element();
header.setValue(o);
header.setNext(null);
}
// ÆäËû²Ù×÷¶¼ºÜÀàËÆ£¬Ö»Ð´³öÌí¼ÓÔªËØµÄ·½·¨
public void add(Object o){
Element temp = header;
if(temp==null){
header = new Element();
header.setValue(o);
header.setNext(null);
}else{
while(temp.getNext()!=null){
temp=temp.getNext();
}
&nbs
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔǰ£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
JavaÖÐÁ¬½ÓÊý¾ÝµÄHibernate
ÅäÖÃ
hibernate.cfg.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.s ......
JavaÐéÄâ»úÖУ¬Êý¾ÝÀàÐÍ¿ÉÒÔ·ÖΪÁ½Àࣺ»ù±¾ÀàÐͺÍÒýÓÃÀàÐÍ¡£»ù±¾ÀàÐ͵ıäÁ¿±£´æÔʼֵ£¬¼´£ºËû´ú±íµÄÖµ¾ÍÊÇÊýÖµ±¾Éí£»¶øÒýÓÃÀàÐ͵ıäÁ¿±£´æÒýÓÃÖµ¡£“ÒýÓÃÖµ”´ú±íÁËij¸ö¶ÔÏóµÄÒýÓ㬶ø²»ÊǶÔÏó±¾Éí£¬¶ÔÏó±¾Éí´æ·ÅÔÚÕâ¸öÒýÓÃÖµËù±íʾµÄµØÖ·µÄλÖá£
»ù±¾ÀàÐͰüÀ¨£ºbyte, short, int, long, char, float, double ......
public class Sort {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] arry = { 19, 10, 5, 45, 100, 30, 35, 29 };
int[] sortArry = mergeSort(arry);
for (int i = 0; i < sortArry.le ......
Èí»Ø³µ£¨Soft Return£©£ºÈí»Ø³µÊÇÔÚ×Ö´¦Àí³ÌÐòÖÐ×÷Ϊ×Ô¶¯ÒÆÐй¦ÄܵÄÒ»²¿·Ö×Ô¶¯²åÈëµÄ£¬Ò²½Ð»»Ðзû£¬ÔÚwordÖп´²»¼û¡£Èç¹ûÎı¾Ò»Ðеij¤¶È³¬¹ýÎĵµËù¶¨ÒåµÄÓұ߾àʱ£¬¼´µ±Ç°ÐÐûÓÐ×ã¹»µÄ¿Õ¼ä·ÅÖÃÏÂÒ»¸ö×Ö·ûʱ£¬ÎÄ×Ö´¦ÀíÈí¼þ½«ÔÚÕâÒ»ÐÐÎı¾µÄĩβ×Ô¶¯²åÈëÒ»¸öÈí»Ø³µ·û£¬Îı¾ÁíÆðÒ»ÐС£Õâ¸öÈí»Ø³µ·ûÊÇÓɱ༳ÌÐò×Ô¶¯²úÉúµÄ£¬½Ð× ......