提取了一些在开发过程中可能会用到的日期相关的函数作为工具类,供大家参考:
/**
* 日期操作工具类.
*
* @author shimiso
*/
public class DateUtil {
private static final String FORMAT = "yyyy-MM-dd HH:mm:ss";
public static Date str2Dat...
分类:
移动开发 时间:
2014-06-07 01:15:57
阅读次数:
289
定义:
单例模式:保证一个类只有一个实例,并且提供一个访问它的全局访问点。(《大话设计模式定义》);
单例模式分为两种:
1>饿汉式单例类:自己被加载时就将自己实例化。
例子:
private SingleExample() {
}
private static SingleExample sin...
分类:
其他好文 时间:
2014-06-05 10:14:01
阅读次数:
198
一、引用命名空间
using System.Security.Cryptography;
二、核心代码
private void button1_Click(object sender, EventArgs e)
{
MD5 md5 = new MD5CryptoServiceProvider();
byte[] da...
分类:
其他好文 时间:
2014-06-05 09:56:00
阅读次数:
287
/*
二叉查找树的链表实现:
以及三种遍历方式,删除节点;
查找节点;
author:天下无双
Date:2014-5-28
Version:3.0
*/
#include
#include
typedef int T;//树内节点的数据类型
using namespace std;
class BiTree
{
private:
struct BiNode{
T data;...
分类:
其他好文 时间:
2014-06-05 09:12:12
阅读次数:
217
关于OOP
博客地址:http://blog.csdn.net/cv_ronny 转载请注明出处!
1,继承可以是单一继承或多重继承,每一个继承连接可以是public、protected或private,也可以是virtual或non-virtual。
2,成员函数的各个选项:virtual或non-virtual或pure-virtual。
3,成员函数和其他语言特性的交互影响:...
分类:
编程语言 时间:
2014-06-05 08:38:28
阅读次数:
421
直接上代码:
/*
二叉树的链表实现:
以及三种遍历方式:
author:天下无双
Date:2014-5-28
Version:2.0
*/
#include
#include
typedef int T;//树内节点的数据类型
using namespace std;
class BiTree
{
private:
struct BiNode{
T data;
BiN...
分类:
其他好文 时间:
2014-06-05 06:30:49
阅读次数:
273
package com.sungeo;/** * 人民币的读法是四位一节; x仟x百x拾 x (亿) x仟x百x拾 x (万) x仟x百x拾 x * @author Administrator */public class NumToRmb {private String[] hanArr=new String[]{"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"};...
分类:
其他好文 时间:
2014-06-05 04:46:57
阅读次数:
169
AUTOLIST
线程阻塞,命令发送后,会等待viewserver反馈结果。viewserver在检测到界面跳转以后才会回馈结果。
private class WindowChangeMonitor implements Runnable {
private IDevice device;
public WindowChangeMonitor(IDevice devi...
分类:
其他好文 时间:
2014-06-05 01:11:43
阅读次数:
213
一、整体代码
#include
using namespace std;
class CCTest {
public:
void setNumber( int );
void printNumber() const ;
private:
int number;
};
void CCTest::setNumber( int num ) { number = num; }
...
分类:
编程语言 时间:
2014-06-04 23:17:34
阅读次数:
415
四十一、控制层不能调用model层除了最顶级的接口外的任何内容。要通过new顶级接口才能调用。不规范示例: public class
UserServiceImpl{ private UserDAOImpl userDAOImpl; private UserServiceImpl(){...
分类:
编程语言 时间:
2014-05-31 14:18:27
阅读次数:
258