精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • what is wrong with the following program?

    what is wrong with the following program?
    ublic class SomethingIsWrong {
    public static void main(String[] args){
    Rectangle myRect;
    myRect.width = 40;
    myRect.hight =50;
    System.out.println('myRect's area is"+myRect.area());
    }
    其他人氣:233 ℃時間:2020-05-30 06:24:18
    優(yōu)質解答
    Rectangle myRect;
    這里沒初始化,改成
    Rectangle myRect = new Rectangle(這里輸入構造方法的參數(shù),如果沒參數(shù)就不用輸);
    記住,要用到一個實例,必須先實例化一個實例.what is wrong with the following interffacepublic interface something is wrong{ void aMethod(int aValue){System.out.println("hi mom"):}}接口里面的方法,不能有方法體,改成:public interface somethingiswrong{ void aMethod(int aValue){}}somethingiswrong是我打錯了,沒空格public interface somethingiswrong{ void aMethod(int aValue);}
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機版