Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¸÷Êý¾Ý¿âÁ¬½ÓÇý¶¯

1¡¢Oracle8/8i/9iÊý¾Ý¿â£¨thinģʽ£©
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orclΪÊý¾Ý¿âµÄSID
String user="test";
String password="test";
Connection conn= DriverManager.getC ......

java class file¼°·´»ã±àºóµÄjvmÖ¸Áî

¹¤³ÌĿ¼½á¹¹ÈçÏ£º
HStudy
         --src
               --jvm
                    &nbs ......

javaÖÐthisºÍsuperµÄÓ÷¨

thisµÄÓ÷¨ÔÚjavaÖдóÌå¿ÉÒÔ·ÖΪ3ÖÖ£º
 //1.ÆÕͨµÄÖ±½ÓÒýÓÃ
class test {
   private int x,y;
   public test(int x,int y) {
       setX(x);//Ò²¿ÉÒÔдΪthis.setX(x);ÕâÖÖÇé¿öÏÂthis¿ÉÒÔÊ¡ÂÔ.
   }
}
//2.·½·¨ÖеÄij¸öÐβÎÃûÓ뵱ǰ¶ÔÏóµÄÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ