Lab1/src/main/java/com/itcarlow/runnabletest/RunnableDemo.java
/**
    * Method used to create & start new thread
    */
Method used to create & start new thread
Method used to create & start new thread
public void start () {
      System.out.println("Starting " +  threadName );
      if (t == null) {
         t = new Thread (this, threadName);
         t.start ();
      }
   }
public void start ( ) { System . out . println ( "Starting " + threadName ) ; if ( t == null ) { t = new Thread ( this , threadName ) ; t . start ( ) ; } }
Method used to create & start new thread
Method used to create & start new thread