int index=str.length();
while(index>0){
str.insert(index,',');
index-=3;
}
while(index>0){
str.insert(index,',');
index-=3;
}
2018-10-16
最新回答 / 慕瓜453346
找到问题了,找到了!!!谢谢谢
最赞回答 / 五岁麻瓜少年
你的构造器的问题,构造器是为当前对象进行初始化用的,首先构造器和类名相同,并且最最最重要的是没有返回类型,你是不是给构造器添加void啦public 类名(){this.students = new HashMap<String,Student>();}希望我的回答能帮助你哦,么么哒(*  ̄3)(ε ̄ *)
2018-10-15
最赞回答 / qq_雪影霜魂_0
public void testForEach() {for(Course cr:courses) {System.out.println("课程-->" + cr.id + ":" + cr.name);}缺了一个大括号}
2018-10-09