错误: 在类 com.imooc.Iaatelphone 中找不到 main 方法
package com.imooc;
public class Telphone {
float screen;
float cpu;
float mem;
void call(){
System.out.println("Telphone有打电话的功能!");
}
void sendMessage(){
System.out.println("Telphone有收发短信的功能");
}
}
package com.imooc;
public class Telphone {
float screen;
float cpu;
float mem;
void call(){
System.out.println("Telphone有打电话的功能!");
}
void sendMessage(){
System.out.println("Telphone有收发短信的功能");
}
}
2017-05-14
package Telphone;
public class Telphone{
float screen;
float cpu;
float mem;
void call(){
System.out.println("Telphone有打电话的功能!");
}
void sendMessage(){
System.out.println("Telphone有收发短信的功能");
}
public static void main(String[] args){
Telphone a = new Telphone();
a.call();
Telphone b = new Telphone();
b.sendMessage();
}
}
举报