Using Java, write a program that checks to see if you havereceived a package. Assume that the delivery person will leave itoutside your door, and that you will want to get it within 5minutes of delivery so your neighbor doesn’t steal it. Also assumethat every 5 iterations of a loop will be 5 real world minutes andthat the delivery person has a 25% chance of leaving the packageevery 5 minutes.
Sample output 1: There has been no delivery.
There has been no delivery.
It was delivered 15 minutes after thetime you expected it to arrive.
Sample output2: It was
OR
OR