name

珍惜眼前人

导航

2015年10月11日 #

用Calendar 写简单的万年历

摘要: public class Demo(){ public static void main(String[] args){ Scanner input = new Scanner(System.in); System.out.print("输入年份(格式:yyyy):"); int year ... 阅读全文

posted @ 2015-10-11 22:28 珍惜眼前人 阅读(380) 评论(0) 推荐(0) 编辑

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) 编辑