Hi this is a very simple program explaining of Threads using the runnable interface. I hope this will help in some other way.:)

Edited 1 Year Ago by Dani: Email removed

public class ThreadTester
{
  public static void main(string args[])
   {
     Runnableex r=new Runnableex();
     Thread t=new Thread(e);
     t.start():
    
    )
}

class Runnableex implements Runnable
{
   int i;

   public void run()
    {
      i=0;
       while(true)
         {
           System.out.println("HELLO"+i++);
            if(i==50)
             {
               break;
             }
         }
    }
}