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

javaµÝ¹éʵÏÖµÄÃÔ¹¬ÓÎÏ·

public class Migong {
 
    private int gard[][]={  {1,1,1,1,0,1,1,1},
                         {0,0,0,1,1,1,1,1},
                         {1,0,1,0,1,1,1,1},
                         {0,0,1,0,0,0,1,1},
                         {1,0,0,0,0,1,1,1},
                         {1,0,1,1,0,1,1,1},
                         {1,0,1,1,1,1,1,1}};
   
    private boolean recurive(int row,int column){
      
       boolean done = false;
       if(valid(row,column)){
           gard[row][column]=3;//×ß¹ýµÄ¸ñ×Ó
           if(row==gard.length-1&&column==gard[0].length-1){
              done = true;
           }else{
              done=recurive(row+1,column);//ÏÂÒÆ
             
              if(!done){


Ïà¹ØÎĵµ£º

java³£ÓÃÕý則±í達ʽ

public class Regex {

/**
* ¼ì²éemailÊäÈëÊÇ·ñÕýÈ·
* ÕýÈ·µÄÊéд¸ñʽΪ username@domain
* @param value
* @return
*/
public boolean checkEmail(String value, int length) {
return value.matches("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)* ......

JAVA Òì³£ throwable exception error throws throw

תÌù£ºhttp://lvp.javaeye.com/blog/356650
1.ÈçºÎÀí½âException,ErrorºÍThrowable
    ThrowableÊÇExceptionºÍErrorµÄ¸¸Àà.
    Error±íʾ´íÎó£¬Ò»°ãÊÇϵͳ¼¶µÄ´íÎó£¡
     ExceptionÒ»°ãÊdzÌÐòÔËÐÐÆÚ¼äµÄ´íÎó£¡
   
    ͨ³ ......

java»ñÈ¡µ±Ç°Â·¾¶[ת]

java»ñÈ¡µ±Ç°Â·¾¶[ת]
¹Ø¼ü×Ö: java ·¾¶
java »ñÈ¡µ±Ç°Â·¾¶
 
1 ¡¢ÀûÓà System.getProperty() º¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
System.out.println(System.getProperty("user.dir"));//user.dir Ö¸¶¨Á˵±Ç°µÄ·¾¶
 
2 ¡¢Ê¹Óà File ÌṩµÄº¯Êý»ñÈ¡µ±Ç°Â·¾¶£º
File directory = new File("");// É趨Ϊµ±Ç°Îļþ ......

java ´®¿ÚͨÐÅ


Java´®¿ÚͨѶ
 
   
´®ÐÐͨѶЭÒéÓкܶàÖÖ£¬ÏñRS232£¬RS485£¬RS422£¬ÉõÖÁÏÖ½ñÁ÷ÐеÄUSBµÈ¶¼ÊÇ´®ÐÐͨѶЭÒé¡£¶ø´®ÐÐͨѶ¼¼ÊõµÄÓ¦ÓÃÎÞ´¦²»ÔÚ¡£¿ÉÄÜ´ó¼Ò¼ûµÄ×î¶à¾ÍÊǵçÄԵĴ®¿ÚÓëModemµÄͨѶ¡£¼ÇµÃÔÚPC»ú¸Õ¿ªÊ¼ÔÚÖйúÁ÷ÐÐÆðÀ´Ê±(´óÔ¼ÊÇÔÚ90Äê´úǰÎåÄê)£¬ÄÇʱÉõÖÁÓÐÈËÓÃÒ»Ìõ´®ÐÐÏß½øÐÐÁ½Ì¨µçÄÔÖ®¼äµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ