摘要: package cn.itcast_04;public class Student { private String name; private int age; public Student() { super(); } public S... 阅读全文
posted @ 2015-08-10 20:29 dingxiaoyue 阅读(163) 评论(0) 推荐(0)
摘要: package cn.itcast_03;public class Student { // 成员变量 private String name; private int age; // 构造方法 public Student() { sup... 阅读全文
posted @ 2015-08-10 20:25 dingxiaoyue 阅读(179) 评论(0) 推荐(0)
摘要: package cn.itcast_02;import java.util.ArrayList;import java.util.Collection;/* * 练习:用集合存储5个学生对象,并把学生对象进行遍历。 * * 分析: * A:创建学生类 * B:创建集合对象 * C:... 阅读全文
posted @ 2015-08-10 20:21 dingxiaoyue 阅读(148) 评论(0) 推荐(0)
摘要: package cn.itcast_01;import java.util.ArrayList;import java.util.Collection;/* * 集合的由来: * 我们学习的是面向对象语言,而面向对象语言对事物的描述是通过对象体现的,为了方便对多个对象进行操... 阅读全文
posted @ 2015-08-10 20:11 dingxiaoyue 阅读(301) 评论(0) 推荐(0)