class Game{
  public static void main(String[] arguments){ 
   int total=0;
   int score=7;
   if(score==7)
      System.out.println("you score a touchdown");
   if(score==3)
      System.out.println("you kick a field goa!!");
     total=total+score;
   System.out.println("total score"+total);
  }
}

解决方案 »

  1.   

    class Game{
      public static void main(string[] arguments)}
                          **
       int total=o;
       int score=7
       if(score==7)
          system.out.println("you score a touchdown");
       if(score==3)
          system.out.println("you kick a field goa!!");
         total=total+score;
       system.out.println("total score"+total);
      }
    } 大括号 写反了:)粗心
      

  2.   

    int score=7 少了 分号,
     xiaofenguser(风雨) 已经帮你纠正了。
      

  3.   

    这样的错误找个code highlight 可以debug的编辑器
    可以很容易解决
      

  4.   

    1.string要写成 String
    2.括号打反了
    3.int score=7这一句加上分号;
    4.把类声明为public