摘要: package com.lovo;import java.util.Calendar;/** * 时钟类 * */public class Clock { private int hour; // 时 private int minute; /... 阅读全文
posted @ 2014-10-20 18:30 魔尊-luy 阅读(135) 评论(0) 推荐(0) 编辑
摘要: /* * 100元钱买小鸡 * 公鸡5一只,母鸡3元一只,小鸡一元3只 */public class Ccs { public static void main(String[] args) { for(int x = 0; x <= 20; x++){ for(int y = 0; y <= 3... 阅读全文
posted @ 2014-10-17 19:29 魔尊-luy 阅读(102) 评论(0) 推荐(0) 编辑
摘要: package com.love;/** * Craps赌博游戏 * * */public class Test08 { public static int roll(){ return (int) (Math.random() * 6 + 1); } publi... 阅读全文
posted @ 2014-10-17 19:26 魔尊-luy 阅读(569) 评论(0) 推荐(0) 编辑
摘要: public class Test01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("请输入一个数"); int a = sc.nextInt();... 阅读全文
posted @ 2014-10-17 19:24 魔尊-luy 阅读(309) 评论(0) 推荐(0) 编辑
摘要: public class hello{ pablic staic oid main(String[] args){ System.out.print("hello,world") }} 阅读全文
posted @ 2014-10-15 18:33 魔尊-luy 阅读(92) 评论(0) 推荐(0) 编辑