javaµÝ¹éʵÏÖººÅµËþ
/*
* ººÅµËþ£¬´ÓµÚ1¸öÖù×Ó½èÖúµÚ2¸ùÖù×ÓÒƶ¯µ½µÚ3¸ù
*/
public class TowerOfHano {
private int totle;//×ܹ²ÅÌ×ÓÊýÄ¿
public TowerOfHano(int totle){
this.totle=totle;
}
private void moveOne(int start,int end){
System.out.println("´Ó"+start+"Òƶ¯Ò»¿éÅÌ×Óµ½"+end);
}
private void moveAll(int totle,int start,int temp,int end){
if(totle==1){
moveOne(start,end);
}else{
moveAll(totle-1,start,end,temp);
moveOne(start,end);
moveAll(totle-1,temp,start,end);
}
}
public static void main(String[] args) {
TowerOfHano tower = new TowerOfHano(3);//²âÊÔÈý¿éÅÌ×Ó
tower.moveAll(tower.totle, 1, 2, 3);
}
}
Ïà¹ØÎĵµ£º
ת×ÔInfoq
http://www.infoq.com/cn/news/2007/09/java_web_architecture_turnning
һλIDÊÇjackson1225µÄÍøÓÑÔÚJavaEyeѯÎÊÁËÒ»¸ö´óÐÍWebϵͳµÄ¼Ü¹¹ºÍ²¿ÊðÑ¡ÐÍÎÊÌ⣬ϣÍûÄÜÌá¸ßÏÖÓеĻùÓÚJavaµÄWebÓ¦ÓõķþÎñÄÜÁ¦¡£ÓÉÓڼܹ¹Ä£Ê½ºÍ²¿Êðµ÷ÓÅÒ»Ö±ÊÇJavaÉçÇøµÄÈÈÃÅ»°Ì⣬Õâ¸öÎÊÌâÒý·¢Á˺ܶàÈÈÐÄÍøÓѵÄÌÖÂÛ£¬ÆäÖÐһЩÒâ¼û¶ÔÆä ......
Java´®¿ÚͨѶ
´®ÐÐͨѶÐÒéÓкܶàÖÖ£¬ÏñRS232£¬RS485£¬RS422£¬ÉõÖÁÏÖ½ñÁ÷ÐеÄUSBµÈ¶¼ÊÇ´®ÐÐͨѶÐÒé¡£¶ø´®ÐÐͨѶ¼¼ÊõµÄÓ¦ÓÃÎÞ´¦²»ÔÚ¡£¿ÉÄÜ´ó¼Ò¼ûµÄ×î¶à¾ÍÊǵçÄԵĴ®¿ÚÓëModemµÄͨѶ¡£¼ÇµÃÔÚPC»ú¸Õ¿ªÊ¼ÔÚÖйúÁ÷ÐÐÆðÀ´Ê±(´óÔ¼ÊÇÔÚ90Äê´úÇ°ÎåÄê)£¬ÄÇʱÉõÖÁÓÐÈËÓÃÒ»Ìõ´®ÐÐÏß½øÐÐÁ½Ì¨µçÄÔÖ®¼äµÄ ......
ת×Ô£ºhttp://www.softhouse.com.cn/news/show/104219.html
Javaƽ̨ÉϽøÐжàÏ̱߳à³ÌµÄȱÏÝ
Java ÓïÑԵIJ¢·¢±à³Ì
¡¡¡¡¾ÍÆä×ÔÉíÀ´Ëµ£¬²¢·¢±à³ÌÊÇÒ»ÖÖ¼¼Êõ£¬ÌṩÁ˲Ù×÷µÄͬʱִÐУ¬²»ÂÛÊÇÔÚµ¥Ò»ÏµÍ³ÉÏ»¹ÊÇ·Ö²¼ÔÚ´óÁ¿ÏµÍ³ÉÏ¡£ÕâÀà²Ù×÷ʵ¼ÊÊÇһЩָÁî˳Ðò£¬ÀýÈçµ¥¶Àij¸ö¶¥¼¶ÈÎÎñµÄ×ÓÈÎÎñ£¬ÕâÀà²Ù ......
JavaÖÐÒ²ÓÐÀàËÆÓÚcodesmithµÄ´úÂëÉú³É¹¤¾ß£¬²»¹ý¿ªÔ´µÄ»òÃâ·ÑµÄͦ¶à£¬ÒÔϼòµ¥½éÉÜ£º
1.spring roo
spring¹Ù·½ÏîÄ¿Ö®Ò»¡£
2.m2Spring
òËÆÉÌÒµµÄ¡£
3.springside
¹ú²úµÄ£¬×÷Õßcsdn½ÄÏ°×ÒÂ
4.rapid-framework
ºÃÏñÒ²Êǹú²úµÄ
5. seam gen
jboss seam ´úÂë× ......
Ò»¡¢java·ÃÎÊÖÐÎÄOracleÊý¾Ý¿âÉÏÁ¬½ÓµÄUS7ASCIIÊý¾Ý¿â
1¡¢¶Á·½·¨
public String convertLink_DB(String s) {
if(s != null){
try{
byte[] b = s.getBytes();
for(int i=0; i<b.length; i++){
b[i] ......