一个不错的例子值得细细品味:
下面按照包顺序将代码贴出来供大家参考:
IEmpDAO
package org.lzch.dao;
import java.util.List;
import org.lzch.vo.Emp;
public interface IEmpDAO {
public boolean doCreate(Emp emp)throws Exception;
p...
分类:
编程语言 时间:
2014-05-26 05:58:08
阅读次数:
578
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
im...
分类:
其他好文 时间:
2014-05-26 05:49:01
阅读次数:
284
新建个UINavigationController的类别:
#import "UINavigationController+CustomAnimation.h"
@implementation UINavigationController (CustomAnimation)
- (void)customPushViewController:(UIViewContr...
分类:
移动开发 时间:
2014-05-26 05:33:19
阅读次数:
381
是构造方法创建的对象吗?
package com.java.essence_36;
import java.util.ArrayList;
import java.util.List;
/**
* Created by lw on 14-5-23.
*
* 构造器做了什么?
* 对象是谁创建的?构造器?
* this到底是什么?
*/
class SupperCons...
分类:
编程语言 时间:
2014-05-26 04:57:54
阅读次数:
544
按先序序列输入字符序列(其中逗号表示空节点),输出该二叉树的层次遍历序列。
#include
#define END ','//表示空节点
using namespace std;
typedef char Elem_Type;
typedef struct BiTree
{
Elem_Type data;
struct BiTree *Lchild;
stru...
分类:
其他好文 时间:
2014-05-26 04:53:07
阅读次数:
261
db2错误代码大全
博客分类:
数据库
sqlcode sqlstate 说明
000 00000 SQL语句成功完成
01xxx SQL语句成功完成,但是有警告
+012 01545 未限定的列名被解释为一个有相互关系的引用
+098 01568 动态SQL语句用分号结束
+100 02000 没有找到满足SQL语句的行
+110 01561 用DATA CAP...
分类:
数据库 时间:
2014-05-26 04:36:13
阅读次数:
413
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMap...
分类:
编程语言 时间:
2014-05-24 23:47:55
阅读次数:
408
说明
本实例能够监控聚划算的抢购按钮,在聚划算整点聚的时间到达时自动弹开页面(URL自己定义)。
可以自定义监控持续分钟数,同时还可以通过多线程加快刷新速度。
源码
package com.itechzero.pricemonitor;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import ja...
分类:
编程语言 时间:
2014-05-24 22:24:26
阅读次数:
668
import java.util.stream.*;
class KV{
String ch;
int id;
}
public class Test {
private static void print(String text, int offset) {
IntStream.range(0, text.length())
.mapToObj(i -> new KV(){{c...
分类:
编程语言 时间:
2014-05-24 22:09:03
阅读次数:
363
package com.codeconch.util;
import java.lang.instrument.Instrumentation;
public class Monitor {
private static Instrumentation instrumentation;
public static void premain(String args, Instrum...
分类:
编程语言 时间:
2014-05-24 21:39:23
阅读次数:
356