编译代码出错
第一个代码:
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有发短信的功能!");}
}
第二个代码:
package com.imooc;
public class InitailTelphone {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Telphone phone=new Telphone();
phone.sendMessage();
}
}
求解??