JavaËã·¨ Ö±½Ó²åÈëÅÅÐò
/**
* Ö±½Ó²åÈëÅÅÐò,Ê×ÏȱȽÏa[n]Óëa[n-1]£¬ÔڱȽÏa[n]Óëa[n-2]
* */
public void sort0(double[] a){
for(int i = 0; i < a.length -1; i ++){
double tmp = a[i + 1];
int j = i;
while(j >= 0 && tmp <= a[j]){
a[j+1] = a[j];
j --;
}
a[j+1] = tmp;
}
}
½«a[n]Óëa[n-1]±È½Ï£¬Èôa[n-1]>a[n],Ôò½«a[n-1]ÓÒÒÆ£¬ÔڱȽÏa[n]Óëa[n-2]Ö±µ½a[n]Óëa[0]¡£
Ïà¹ØÎĵµ£º
ÔÚÉÏÒ»¸öÎÄÕÂÀï,ÎÒÃÇ°ÑÏîÄ¿½¨ºÃÁË,²¢ÇÒÒѾ³É¹¦ÔËÐÐ,ÏÖÔÚÀ´Àí½âÏÂzkʼþÇý¶¯(event-driven)µÄ£¬»ùÓÚ×é¼þ(component-based)µÄÌصã
ÏÈÀ´µãÀíÂÛ,ʲô½Ð×ö»ùÓÚ×é¼þ,ά»ù°Ù¿ÆÀïÃæÕâôÃèÊöµÄ:»ùÓÚ×é¼þµÄÈí¼þ¹¤³Ì£¨Component-based software engineering£¬¼ò³ÆCBSE£©»ò»ùÓÚ×é¼þµÄ¿ª·¢£¨Component-Based Development£¬¼ò³ÆCBD£©ÊÇÒ ......
½ñÌìûʸɡ££¬ÄÃJavaÖеÄmainº¯ÊýÀ´Ịֽ̀¬¡£¡£»¹ÇëÖîλָµã°¡£¬£¬
public static void main(String args [])
{
.....
}
ÕâÊÇ´ó¼ÒÒ»°ãµÄд·¨°É£¬ÕâÀïÎÒÏëÌ̵ֽÄÖ÷ÒªÓÐÒÔϼ¸µã£º
1.ËüµÄ²ÎÊýÎÊÌ⣬ÄǸö²ÎÊýµ¹µ×ÓкÎÓÃÄØ£¬£¬ÕâÊǺÜÁîÈËÃÔ»óµÄ£¬ÕâÀï×Ô¼ºÐ´Á˸öÀý×ÓÊÔÁËһϣ¬µ«ÊdzöÏÖÁËÒì³££º
class A
{
......
/**
*
*/
package com.dongyun.peas2.system.web.action;
///**
// * @author Administrator
// *
// */
//public class ABcom {
//
// /**
// *
// */
// public ABcom() {
// // TODO Auto-generated constructor stub
// }
//
// /**
//&nb ......
×öÁËÒ»¸öºÜ¼òµ¥µÄ½çÃæ³ÌÐò,Ò²ÊÇÎÒµÚÒ»¸ö½çÃæ³ÌÐò.Ö÷Òª¹¦ÄܾÍÊÇÊäÈëÁ½¸öÊý×Ö,¼ÆËãÕâÁ½¸öÊý×ֵĺÍ,ºÜ¼òµ¥µÄ¹¦ÄÜ,ÎÒÈ´»¨Á˺ܾÃ,¶ÔjavaÌ«²»ÊìϤÁË,Á¬µÃµ½textField1ÖÐÓû§ÊäÈëµÄÖµÔõô»ñµÃ,¶¼²»ÖªµÀ,ºóÀ´baidu²ÅÖªµÀ,
Óà textField1.getText()»ñµÃÊäÈëµÄÖµ;,
  ......
DOMÊÇ»ùÓÚƽ̨¡¢ÓïÑÔÎ޹صĹٷ½W3C±ê×¼¡£»ùÓÚÊ÷µÄ²ã´Î£¬ÆäÓŵãÊÇ¿ÉÒÔÒÆÖ²£¬±à³ÌÈÝÒ×£¬¿ª·¢ÈËÔ±Ö»ÐèÒªµ÷Óý¨Ê÷µÄÖ¸Áî¡£ÆäȱµãÊǼÓÔØ´óÎļþ²»ÀíÏë¡£
¡¡¡¡SAXÊÇ»ùÓÚʼþÄ£Ð͵ģ¬ËüÔÚ½âÎö XML ÎĵµµÄʱºò¿ÉÒÔ´¥·¢Ò»ÏµÁеÄʼþ£¬µ±·¢ÏÖ¸ø¶¨µÄtagµÄʱºò£¬Ëü¿ÉÒÔ¼¤»îÒ»¸ö»Øµ÷·½·¨£¬¸æË߸÷½·¨Öƶ¨µÄ±êÇ©ÒѾÕÒµ½¡£ÀàËÆÓëÁ÷ýÌåµÄ½ ......