class child implement runnable
{
   void run()
        {   }
}......
    static void main()
{
    new thread(new child).start(); }
----------------
这里 new thread(new child).start();  是不是就是运行 child 的 run()过程呀?谢谢

解决方案 »

  1.   

    Java是严格区分大小写的,你的那个接口,应该是Runnable
      

  2.   

    class child implement Runnable 

      void run() 
            {  } 
    } ...... 
        static void main() 

        new Thread(new child).start(); } 
      

  3.   

    楼主的代码是有好几处是有问题的
    第一行两个错误
    第二行一个
    main方法错误
    main方法内一行也是错误的
     class child implements Runnable
    {    public void run() {
    // TODO Auto-generated method stub
         System.out.println("started...");

    }
        
        public static void main(String []args){
         new Thread(new child()).start();//等价于下面三行
         child c=new child();
         Thread t=new Thread(c);
         t.start();
        }
    }