亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

The selection cannot be launched ,and there are no recent launches無法啟動選擇,并且沒有最近的啟動(問題出現在哪里)

package com.imooc;


public class Telphone {

float screen;

float cpu;

float mem;

void call() {

System.out.println("telphone有打電話的功能");

}

void sendMessage() {

System.out.println("screen:"+screen+"cpu:"+cpu+"mem:"+mem+"Telphone有發短信的功能!");

}

}


正在回答

2 回答

你這個類里只定義了兩個方法:call()方法和sendMessage()方法而并沒有主方法main

即沒有程序入口,怎么可能啟動?

0 回復 有任何疑惑可以回復我~
你需要這樣一個東西:
public?static?void?main(String[]?arys){

}

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

The selection cannot be launched ,and there are no recent launches無法啟動選擇,并且沒有最近的啟動(問題出現在哪里)

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號