http://www.imooc.com/article/12177,请各位大神多多指教,这是我第一次发布手记
2016-08-14
现学现写,while(true)的使用借鉴了其他同学的手记,希望能给您提供一些参考。
http://www.imooc.com/article/12159
http://www.imooc.com/article/12159
String prefix=filename.substring(index+1);//获取文件名的后缀
得到的后缀是java 不包括.号
得到的后缀是java 不包括.号
2016-08-13
StringBuilder str=new StringBuilder();
str.append("jaewkjldfxmopzdm");
int index=str.length()-3;
while(index>=0)
{
str.insert(index,",");
index-=3;
}
System.out.print(str.toString());
str.append("jaewkjldfxmopzdm");
int index=str.length()-3;
while(index>=0)
{
str.insert(index,",");
index-=3;
}
System.out.print(str.toString());
2016-08-13
message是传入父类构造器的变量,不用加双引号的,加双引号反而成了传入"message"这个字符串常量
2016-08-12
建议用迭代器或者增强for循环遍历。
for(Course c : courseToSelect){
System.out.println("添加课程:" + c.getId() + ":" + c.getName());
}
for(Course c : courseToSelect){
System.out.println("添加课程:" + c.getId() + ":" + c.getName());
}
2016-08-12
http://www.imooc.com/u/3121968/opus 这是我自己写的扑克牌游戏代码,可更改发牌数目和玩家人数,欢迎交流!
2016-08-12