? public boolean addCourse(String id,String name){? ? boolean iss = true;? ? for(Course cour:course){? ? ? ?? ? ? ?if(cour.getId().equals(id)){? ? ? ? ? System.out.println("請(qǐng)輸入"+(course.size()+1)+"后的id!!");? ? ? ? ? iss = false;? ? ? ? ? return true;? ? ? ? }? ? ?} ? ??? ? ?? ? ? ?if(!(iss)){? ? ? ? ? Course cou = new Course(id,name);? ? ? ? ? course.add(cou);? ? ? ? ? return false;? ? ? ?}?? ? ? ??? ??? }
java總報(bào)錯(cuò)缺少返回語(yǔ)句
weibo_快樂(lè)is魏帆_0
2015-10-15 09:28:18