摘要: public class Board { private int[][] b = new int[15][15]; private boolean blackTurn = true; // 是否轮到黑方走棋 /** * 绘制棋盘 * @para... 阅读全文
posted @ 2014-10-29 22:27 SUPER-YueYue 阅读(147) 评论(0) 推荐(0) 编辑
摘要: int[] a = new int[10]; for (int i = 0; i a[j]) { temp = a[i]; a[i] = a[j]; a[j] = temp; } } } System.out.println("从小到大的值为:"); ... 阅读全文
posted @ 2014-10-24 20:21 SUPER-YueYue 阅读(131) 评论(0) 推荐(0) 编辑
摘要: /** * 时钟类 * * @author Administrator * */public class Clock { private int hour; private int minute; private int second; public Clock() { Calendar ca... 阅读全文
posted @ 2014-10-23 19:37 SUPER-YueYue 阅读(188) 评论(0) 推荐(0) 编辑
摘要: /** * 时钟 * */public class Clock { private int hour; private int minute; private int second; public Clock() { Calendar cal = Calendar.getInstance(); ... 阅读全文
posted @ 2014-10-20 19:48 SUPER-YueYue 阅读(93) 评论(0) 推荐(0) 编辑
摘要: public class CrapsGame { public static int roll() { return (int) (Math.random() * 6 + 1); } public static void main(String[] args) { Scanner sc = ne... 阅读全文
posted @ 2014-10-20 19:05 SUPER-YueYue 阅读(226) 评论(0) 推荐(0) 编辑
摘要: //百钱百鸡 for(int i=20;i>=0;i--){ for(int j=33;j>=0;j--){ for(int z = 99;z >= 0 ; z-=3){ if((5*i + 3*j + z/3 == 100) && i + j + z == 100 ){ ... 阅读全文
posted @ 2014-10-16 21:36 SUPER-YueYue 阅读(259) 评论(0) 推荐(0) 编辑
摘要: public class TaxCalculation { public static void main(String[] args) { String a = JOptionPane.showInputDialog("请输入你的收入工资:"); String b = JOptionPane.... 阅读全文
posted @ 2014-10-15 21:20 SUPER-YueYue 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 了解到了Jave的程序是由类构成的,因为Java是一个面向对象的编程语言面向对象编程中最重要的概念就是类(class)和对象(object)。由javac编译成字节码文件,由java虚拟机运行。类是对象的蓝图,对象是类的实列。今天写了第一个程序 HelloWorld!第一个方法public stat... 阅读全文
posted @ 2014-10-14 21:13 SUPER-YueYue 阅读(132) 评论(0) 推荐(0) 编辑