- 浏览: 99586 次
- 性别:
- 来自: 广州
最新评论
-
囧男孩子:
ink:
flex -
囧男孩子:
flex -
okhaoba:
谢谢分享。
Java混淆器jocky -
huanglei7211:
资源不错,先学习下;后续在和楼主交流
jbpm -
yudm:
很不错,多谢。
jbpm
文章列表
163新注册用户不支持pop3
依赖的jar包:mail.jar和activation.jar
- 2009-04-03 10:08
- 浏览 1101
- 评论(0)
findbugs:在代码走查中使用该工具能够很容易找出代码里的一些bug
- 2009-03-23 12:27
- 浏览 902
- 评论(0)
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class BaseProxy implements InvocationHandler{
protected Object target;
public Object getTarget() {
return target;
}
public void setTarget(Object target) {
this.target = t ...
- 2009-02-23 22:15
- 浏览 995
- 评论(0)
import java.lang.reflect.Method;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
public class BaseInterceptor implements MethodInterceptor {
private Object target;
private Enhancer enhancer = new Enhancer();
public Obje ...
- 2009-02-23 22:10
- 浏览 1184
- 评论(0)
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Properties;
/**
* 该类的功能:通过反射获取类的实例
*
*/
public class ClassLoaderFactory {
public ClassLoaderFactory() {
super();
...
- 2009-02-23 22:06
- 浏览 1427
- 评论(0)
import java.applet.Applet;
//jre/lib/plugin.jar
import netscape.javascript.JSObject;
public class ScriptApplet extends Applet {
public static JSObject getJSWin(Applet applet) {
JSObject win = JSObject.getWindow(applet);
return win;
}
public static JSObject getDocObject(Applet applet) {
J ...
- 2009-02-22 00:31
- 浏览 1534
- 评论(0)
public class Test {
public static void main(String[] args){
//九九乘法口诀
System.out.print(" ");
for(int i=1;i<10;i++){
System.out.print(i+" ");
}
System.out.println();
for(int i=1;i<10;i++){
System.out.print(i+" ");
for(int j=1;j<10;j ...
- 2009-02-21 16:03
- 浏览 1011
- 评论(0)
/**
* <p>
* Title: 线程间合作
* </p>
* <p>
* Description: 本实例使用二个线程共同合作绘制一个实体三角。
* </p>
* <p>
* Filename: ITCDemo.java
* </p>
*/
public class ITCDemo {
private int flag = 0; // 两个线程都不工作
int count = 20;
/**
* <br>
* 方法说明:主方法 <br>
* 输入参数: & ...
- 2009-02-21 15:47
- 浏览 796
- 评论(0)
/**
* 设计4个线程,其中两个线程每次对j增加1,另外两个线程对j每次减少1。
* 以下程序使用内部类实现线程,对j增减的时候没有考虑顺序问题。
*/
public class ThreadTest {
private int j;
public static void main(String args[]) {
ThreadTest tt = new ThreadTest();
Inc inc = tt.new Inc();
Dec dec = tt.new Dec();
for (int i = 0; i < 2; i++) {
Thread t ...
- 2009-02-21 15:39
- 浏览 927
- 评论(0)
import java.io.IOException;
import java.io.PipedOutputStream;
public class Sender extends Thread{ //发送信息(写)
//创建管道输出成员变量
private PipedOutputStream out=new PipedOutputStream();
public PipedOutputStream getOutputStream(){ //获得输出管道
return out;
}
public void run(){
...
- 2009-02-21 15:33
- 浏览 1019
- 评论(0)
/**
* <p>Title: 目录操作</p>
* <p>Description: 演示列目录下的文件,和移动一个目录</p>
* <p>Filename: Dir.java</p>
*/
import java.io.*;
public class Dir {
/**
* <br>
* 方法说明:实现目录列表 <br>
* 输入参数: <br>
* 返回类型:
*/
public String[] dirList(String pathName) {
...
- 2009-02-21 15:12
- 浏览 809
- 评论(0)