首页 > 其他 > 详细

1.25 作业

时间:2016-01-25 20:56:26      阅读:216      评论:0      收藏:0      [点我收藏+]
package com.lainxi2;

public class ceshi3 extends Thread{
    
    public void run()
    {
        dxc();
    }
    
    public void dxcf() 
    {
        for(int i = 0;i< 10;i++)
        {
            System.out.println(this + " 啦啦啦德玛西亚 ");
            
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                // TODO 自动生成的 catch 块
                e.printStackTrace();
            }
        }
    }
public class ceshi2 {

    public static void main(String[] args) throws InterruptedException {
        
        ceshi3 cs = new ceshi3();
        
        cs.start();
        
        ceshi3 cs1 = new ceshi3();
        
        cs1.start();
        

 

1.25 作业

原文:http://www.cnblogs.com/baozhaba-xianchong/p/5158478.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!