本帖最后由 冷风 于 2014-8-28 13:57 编辑
class Teacher
{
private String name;
private Computer comp;
Teacher(String name)
{
this.name=name;
comp = new Computer();
}
public void speak()
{
comp.run();
System.out.println("讲课");
}
}
class Computer
{
public void run()
{
System.out.println("电脑运行");
}
public void reat()
{
System.out.println("电脑重启");
}
}
class YiChangDemo
{
public static void main(String[] args)
{
Teacher t = new Teacher("毕老师");
t.speak();
}
}
错误提示:
YiChangDemo.java:17: 错误: 非法字符: '\uff1b'
System.out.println("讲课");
^
YiChangDemo.java:26: 错误: 非法字符: '\uff1b'
System.out.println("电脑运行");
真心没找出来 问题在那:Q
|
|