Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1071621
  • 博文数量: 252
  • 博客积分: 4561
  • 博客等级: 上校
  • 技术积分: 2833
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-15 08:23
文章分类

全部博文(252)

文章存档

2015年(2)

2014年(1)

2013年(1)

2012年(16)

2011年(42)

2010年(67)

2009年(87)

2008年(36)

分类:

2009-10-09 13:29:45

import javax.mail.internet.InternetAddress;
import java.util.Calendar;
import java.util.Enumeration;
import java.net.NetworkInterface;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.DateFormat;
import java.io.DataInputStream;

class ChildThread
{
    public String name;
    
    public ChildThread()
    {
        this.name = "hello world";
    }
    
    public void run()
    {
        System.out.println(name);
    }
}

public class Test
{
    public static void main(String args[]) throws Exception
    {

            ChildThread t = (ChildThread) Class.forName("ChildThread").newInstance();
            t.run();
    }
}


阅读(675) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~