name

珍惜眼前人

导航

2015年10月21日 #

雪花飘啊飘

摘要: 1 package snow2; 2 3 import java.io.FileNotFoundException; 4 import java.io.IOException; 5 6 public class Test { 7 public static void main(Stri... 阅读全文

posted @ 2015-10-21 23:39 珍惜眼前人 阅读(253) 评论(0) 推荐(0) 编辑

2015年10月14日 #

File 、InputStream和OutputStream 、BefferedInputStream和BufferedOutputStream 三种方法复制文件的操作

摘要: 1 import java.io.File; 2 3 public class ShowFile { 4 5 public static void main(String[] args) { 6 7 File dir = new File("E:/aaa"); 8 ... 阅读全文

posted @ 2015-10-14 20:01 珍惜眼前人 阅读(876) 评论(0) 推荐(0) 编辑

2015年10月11日 #

Java 开发简单的贪吃蛇游戏

摘要: public class Test { public static void main(String[] args) { Game game = new Game(); game.start(); }}public class Node { privat... 阅读全文

posted @ 2015-10-11 21:47 珍惜眼前人 阅读(334) 评论(0) 推荐(0) 编辑

斐波拉契问题的兔子问题

摘要: 古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?突然发现好久没用递归调用(Recursive),为了以后更好的复习以及理解 ,从新稳固以图可见从第三个月开始每个月的兔子数量都是前两个月兔子的总数、publi... 阅读全文

posted @ 2015-10-11 21:33 珍惜眼前人 阅读(680) 评论(0) 推荐(0) 编辑