- 博客(4)
- 收藏
- 关注
原创 时钟
package com.lovo;import java.util.Calendar;/** * 时钟类 * @author 黎磊 * */public class Clock { private int hour; // 时 private int minute; // 分 private int second; // 秒 /** * 构造器 *
2014-10-20 20:16:14
164
原创 赌博游戏
return (int) (Math.random() * 6 + 1); } public static void main(String[] args) { int firstPoint, currentPoint; firstPoint = currentPoint = roll() + roll(); System.out.println("玩家摇出了" + curr
2014-10-19 14:44:20
351
原创 百钱百鸡
public static void main(String[] args) { for(int x = 0; x <= 20; x++) { for(int y = 0; y <= 33; y++) { int z = 100 - x - y; if(5 * x + 3 * y + z / 3 == 100 && z % 3 == 0) { System.ou
2014-10-19 14:43:07
168
原创 七星彩选号
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("机选几注: "); if(sc.hasNextInt()) { int n = sc.nextInt(); if(n > 0) { for(int i = 1; i <= n;
2014-10-19 14:42:02
803
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人