import java.util.*;
public class Students
{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
Student s1=new Student();//creates object of class aircraft
Student s2=new Student();
//or
//Student s1,s2
//s1=new Student();
//s2=new Student();
String str;
int i;
//str=s1.getname();
}
}
class Student{ //extends Students{
String name;
int 1; ?<Identifier> expected?
int 2; ?<Identifier> expected?
int 3;
}
}
在我得到標識符預期的最後三行。爲什麼?學生班應該存儲名稱和三個考試分數。爲什麼我得到一個標識符預期的錯誤
它的最後一行太說它int 3; – 2014-10-08 00:19:48