The selection cannot be launched ,and there are no recent launches無(wú)法啟動(dòng)選擇,并且沒(méi)有最近的啟動(dòng)(問(wèn)題出現(xiàn)在哪里)
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有發(fā)短信的功能!");
}
}
2019-02-21
你這個(gè)類里只定義了兩個(gè)方法:call()方法和sendMessage()方法而并沒(méi)有主方法main
即沒(méi)有程序入口,怎么可能啟動(dòng)?
2019-04-22