国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

Mini Java編譯器(六)

2019-11-18 14:27:58
字體:
供稿:網(wǎng)友

  七、系統(tǒng)工作過程及運行說明





   


   



   


























八、實例程序運行結(jié)果示例一代碼
class

Main{

  public static void main(String[] args){

    System.out.PRintln(10);

  }

}


 


 



 



 



 



 



class G{

  public int get(int num){

    int a;

    a=2;

    return a+5;

  }

}


 


 



 



 



 



 



class H extends G{

  int i;

  boolean bol;


 


 



 



 



 



 



  public int put(){

    i=1+2;

    i=12-3;

    i=2*7;


 


 



 



 



 



 



    bol=true && false;

    bol=1<2;


 


 



 



 



 



 



    return 10;

  }

}


 


 



 



 



 



 


繼續(xù)樹





 


 



 



 



 



 


符號表





 


 



 



 



 



 


內(nèi)存分配表





 


 



 



 



 



 


示例二代碼
class Factorial {

    public static void main(String[] a) {

        System.out.println(new Fac().ComputeFac(10));

    }

}


 


 



 



 



 



 



class Fac extends Factorial{

    Fac f;

    Factorial ff;

    int i;


 


 



 



 



 



 



    public int ComputeFac(int num) {

      int numaux;

      if (num < 1)

        numaux = 1;

      else

        numaux = num * (this.ComputeFac(num-1));

      return numaux;

    }

}


 


 



 



 



 



 



class F extends Fac{

}


 


 



 



 



 



 



class G extends Factorial{

}


 


 



 



 



 



 



class H{}


 


 



 



 



 



 



class I extends H{}


 


 



 



 



 



 



class J extends I{}


 


 



 



 



 



 



class GG extends I{}


 


 



 



 



 



 



class DD extends I{}


 


 



 



 



 



 


繼續(xù)樹





 


 



 



 



 



 


符號表





 


 



 



 



 



 


內(nèi)存分配表

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 井冈山市| 郸城县| 托里县| 射阳县| 雅江县| 车险| 宾川县| 岐山县| 长沙市| 淮南市| 都江堰市| 连云港市| 仁寿县| 库车县| 宜兰县| 吴堡县| 榆中县| 恩施市| 南城县| 清苑县| 盐津县| 乌拉特前旗| 阿拉善左旗| 宁陕县| 丽水市| 登封市| 江达县| 丹凤县| 土默特左旗| 临湘市| 兴和县| 崇阳县| 巴林左旗| 岑巩县| 威海市| 望奎县| 神木县| 连山| 铁岭县| 文登市| 芜湖县|