package com.lovo;/** * 时钟类 * @author 文波 * */import java.util.Calendar;public class Clock { private int hour; private int minute; private int ...
分类:
其他好文 时间:
2014-10-20 22:44:20
阅读次数:
153
时钟程序 1 package com.lovo; 2 3 import java.util.Calendar; 4 5 /** 6 * 时钟类 7 */ 8 public class Clock { 9 private int hour; // 时10 ...
分类:
编程语言 时间:
2014-10-20 21:05:43
阅读次数:
178
/** * 时钟 * */public class Clock { private int hour; private int minute; private int second; public Clock() { Calendar cal = Calendar.getInstance(); .....
分类:
其他好文 时间:
2014-10-20 20:57:10
阅读次数:
204
1 package com.fj; 2 3 import java.util.Calendar; 4 5 /** 6 * 时钟类 7 * @author 俊霖 8 * 9 */10 public class Clock {11 private int hour;12 p...
分类:
其他好文 时间:
2014-10-20 20:45:46
阅读次数:
264
package com.lovo;import java.util.Calendar;/** * 时钟类 * */public class Clock { private int hour; // 时 private int minute; /...
分类:
编程语言 时间:
2014-10-20 19:07:47
阅读次数:
236
Problem Description
To see a World in a Grain of Sand
And a Heaven in a Wild Flower,
Hold Infinity in the palm of your hand
And Eternity in an hour.
—— William Blake
听说...
分类:
其他好文 时间:
2014-10-19 01:28:31
阅读次数:
326
Hadoop日志分析系统启动脚本
#!/bin/bash
#Flume日志数据的根目录
root_path=/flume
#Mapreduce处理后的数据目录
process_path=/process
#hive分区时间
partition=`date "+%Y-%m-%d"`
#获取前一小时的时间:/YYYY-MM-DD/HH
file_path=`date -d "1 hour ...
分类:
其他好文 时间:
2014-10-16 19:41:13
阅读次数:
202
写这片博客 ,下面代码虽然简单,但却很实用...默默留下来...var minute = 1000 * 60;var hour = minute * 60;var day = hour * 24;var halfamonth = day * 15;var month = day * 30;funct...
分类:
Web程序 时间:
2014-10-15 18:12:01
阅读次数:
171
It is quite a basic problem. However I spent half an hour solving it and made two mistakes. Guess it's because I haven't written some fundamental data structures like linked list for a while and kind...
分类:
其他好文 时间:
2014-10-12 09:08:27
阅读次数:
176
4-2 电子时钟中的运算符重载
Time Limit: 1000MS Memory limit: 65536K
题目描述
通过本题目的练习可以运算符重载的方法;
设计一个时间类Time,私有数据成员有hour(时)、minute(分)、second(秒);
公有成员函数有:setHour(int)设置数据成员hour的值,非法的输入默认为12;setMinue(int...
分类:
其他好文 时间:
2014-10-10 10:15:14
阅读次数:
286