Question #244949

Write a java application using the concepts of multithreading for a flower
shop where flowers are delivered based on order.

Expert's answer

public class Shop implements Runnable {
  @Override
  public void run() {
    // todo impl...
  }
  public static void main(String[] args) {
    Shop shop = new Shop();
    Thread thread = new Thread(shop); // Using the constructor Thread(Runnable r)  
    shop.start();
  }
}
LATEST TUTORIALS
APPROVED BY CLIENTS