import java.util.*;
class student
{
String name;
int score;
student(String name,int score)
{
this.name=name;
this.score=score;
}
void shuchu()
{
System.out.println(name+" "+score);
}
}
public class banji_1
{
public static void main(String ag[])
{
Map aa=new TreeMap();
aa.put(0,new student("a",1));
aa.put(1,new student("b",2));
aa.put(2,new student("c",3));
for(int i=0;i<4;i++)
{
aa.get(i).shuchu();
}
}
}
编译报错
宝慕林4294392
芜湖不芜