三季都学完了,自己在要求的基础上,加入了一点新的东西,可以自定义玩家的人数,利用了老师还没哟有讲过的正则表达式,自己加入了详细的注释,希望大家多指教,谢谢
http://www.imooc.com/article/19923
http://www.imooc.com/article/19923
2017-08-16
服了简直,好几节内容提交老是系统繁忙,刷新,重新打开都不行,对于这种强迫症看见任务没有100%难受,什么系统啊
2017-08-16
String suffix = fileName.substring(index);
if(index != -1 && index != 0 && suffix.equals(".java")){
sys("此文件名符合要求");
boolean flag = index03 > index02;
if(index02 != -1 && flag)
public static void sys(String ste){
System.out.println(ste);
}
}
if(index != -1 && index != 0 && suffix.equals(".java")){
sys("此文件名符合要求");
boolean flag = index03 > index02;
if(index02 != -1 && flag)
public static void sys(String ste){
System.out.println(ste);
}
}
2017-08-16
常见的ArrayList、HashSet、HashMap(HashMap使用键值对(<key,value>));
不常见的LinkedList;
不常见的LinkedList;
2017-08-15
public void testForEach(){
list.forEach((cr3) -> {
System.out.println("添加的课程:" + cr3.getId() + "添加的课程名:" + cr3.getName());
});
}
list.forEach((cr3) -> {
System.out.println("添加的课程:" + cr3.getId() + "添加的课程名:" + cr3.getName());
});
}
2017-08-15
我是说怎么一直是有序的呢 我tm终于弄明白了 前面的课程仍是用的list集合 这点你们可以自己看下 而用到set集合的是学生选课这里 老师在2:10的时候在学生类中的修改就是利用set集合进行选课的 所以最后你foreach出来的课程列表是list集合 有序的;而你的选课是set集合 是无序的。
2017-08-15
网页上
2017年08月15日 04时35分02秒
2017/08/15 04:35:02
2017-08-15 04:35:02
Sun Jun 01 21:05:36 UTC 2014
eclipse:
2017年08月15日 12时35分35秒
2017/08/15 12:35:35
2017-08-15 12:35:35
Sun Jun 01 21:05:36 CST 2014
2017年08月15日 04时35分02秒
2017/08/15 04:35:02
2017-08-15 04:35:02
Sun Jun 01 21:05:36 UTC 2014
eclipse:
2017年08月15日 12时35分35秒
2017/08/15 12:35:35
2017-08-15 12:35:35
Sun Jun 01 21:05:36 CST 2014
2017-08-15
在 eclipse 中与 网页上 运行时间不一致。 eclipse 是 PekingTime 时间, 而 网页上 是 UTC 时间
2017-08-15
没有人发现这个打印出来不是 PekingTime ,而是 UTC 时间,换算公式:UTC + 时区差 = 本地时间
UTC + (+0800) = 本地(北京)时间
UTC + (+0800) = 本地(北京)时间
2017-08-15
StringBuilder 和StringBuffer ,它们基本相似,不同之处,StringBuffer 是线程安全的,而 StringBuilder 则没有实现线程安全功能,所以性能略高。因此一般情况下,如果需要创建一个内容可变的字符串对象,应优先考虑使用 StringBuilder 类。
2017-08-15
两种位置获取:一种包括 "." , 另一种从 "java" 开始
2017-08-15