StringBuffer 是线程安全的,而 StringBuilder 则没有实现线程安全功能,所以性能略高。因此一般情况下,如果需要创建一个内容可变的字符串对象,应优先考虑使用 StringBuilder 类。
2016-09-21
http://www.imooc.com/article/13105 自己写的课后题,基本完成老师要求,但不够简洁....增加了一些小细节。
2016-09-20
为什么删除了学生,下面还可以将对象打印出来
students.remove(id);
System.out.println("成功删除:"+student.name);
students.remove(id);
System.out.println("成功删除:"+student.name);
2016-09-20