个人感觉不好,而且屏幕也不是很大,这么多人互动,感觉没有学习气氛。
而且基础是免费的,到了j2ee一个学生要VIP学费6000呢,感觉不怎么深入。
友情提示:YY上听课,我不是很赞同,小峰讲的不详细。
程序运行截图:
学生类
/*** 学生类
*
* @author wangliang
*
*/
public class Student {
int ID// 学生学号
String name// 学生姓名
double mathematics// 数学分数
double chinese// 语文分数
double english// 英语分数
}
2.测试类:
public class Test {public static final void main(String[] arg) {
List<Student> listStudents = new ArrayList<Student>()
//
List<String> listName = new ArrayList<String>()
listName.add("小明")
listName.add("小刚")
listName.add("小花")
listName.add("小红")
listName.add("小峰")
List<Double> listMathematics = new ArrayList<Double>()
listMathematics.add(56.0)
listMathematics.add(89.0)
listMathematics.add(59.0)
listMathematics.add(70.0)
listMathematics.add(60.0)
for (int i= 0 i < 5 i++) {
Student student = new Student()
student.ID = i
student.name = listName.get(i)
student.mathematics = listMathematics.get(i)
listStudents.add(student)
}
//求平均分
//数学总分
double tatol = 0
for(Student student:listStudents) {
tatol += student.mathematics
//
if (student.mathematics < 60) {
System.out.println("不及格学生姓名:" + student.name + " 学号:" + student.ID + "不及格课程 数学 ( "+student.mathematics +" )")
}
}
//输出平均分
double average
System.out.println("数学平均分:" + (average = tatol / 5))
}
}