日期:2014-05-20  浏览次数:20782 次

新手呀 “进行语法解析时已到达文件结尾” 这是怎么啦?
interface Chongqiwawa{
public void makeLove(String name);
}

class Person{
 Chongqiwawa wawa;
 public void setWawa(Chongqiwawa wawa){
  this.wawa = wawa;
 }
 private String name;
 public void makeLove(){
  wawa.makeLove(name);
}
class USAWawa implements Chongqiwawa{
  public void makeLove(String name){
  System.output.println(name + " come on! a,a, a...");
  }
}

class JapanWawa implements Chongqiwawa{
  public void makeLove(String name){
  System.output.println(name + " yemede! a,a, a...ganbade...");
  }
}

class MakeLove
{
public static void main(String [] args)
{
Person you = new Person();
Chongqiwawa wawa = new JapanWawa();
you.setWawa(wawa);
you.makeLove();
}
}

------解决方案--------------------
一般碰到这种错误,都说明你少了右括号。

我目测应该是:
class Person{
的右括号漏了。