@@ -0,0 +1,2198 @@
+//Quote of the Day%0Apackage assignment4;%0A%0Aimport java.util.*;%0Aimport java.io.*;%0Aimport java.text.*;%0A%0Apublic class QuoteOfTheDay%7B%0A%0A%09private static String%5B%5D quotes = %7B%0A%09%09%22Either you run the day or the day runs you.%22,%0A%09%09%22Good, better, best. Never let it rest. 'Til your good is better and your better is best.%5Cn%5Ct-Jim Rohn%22,%0A%09%09%22When you reach the end of your rope, tie a knot in it and hang on.%5Cn%5Ct-St. Jerome%22,%0A%09%09%22Accept the challenges so that you can feel the exhilaration of victory.%5Cn%5Ct-Franklin D. Roosevelt%22,%0A%09%09%22Life is 10%25 what happens to you and 90%25 how you react to it.%5Cn%5Ct-Charles R. Swindoll%22,%0A%09%09%22In order to succeed, we must first believe that we can.%5Cn%5Ct-Nikos Kazantzakis%22,%0A%09%09%22What you do today can improve all your tomorrows.%5Cn%5Ct-Ralph Marston%22,%0A        %22If oppurtunity doesn't knock, build a door.%5Cn%5Ct-Milton Burle%22,%0A        %22It is always the simple that produces the marvellousn%5Cn%5Ct-Amelia Barr%22,%0A        %22Only a life lived for others is a life worthwhile.%5Cn%5Ct-Albert Einstein%22,%0A        %22A life spent making mistakes is not only more honorable, but more useful than a life spent doing nothing.%5Cn%5Ct-G. B. Shaw%22,%0A        %22Either you do it perfect, or you don't do it at all.%5Cn%5Ct-Elon Musk%22%0A%09%7D;%0A%09%0A%09public static void main(String args%5B%5D)%7B%0A        %0A%09%09Date today = new Date();%0A%09%09DateFormat hr = new SimpleDateFormat(%22H%22);%0A%09%09DateFormat min = new SimpleDateFormat(%22m%22);%0A%09%09DateFormat sec = new SimpleDateFormat(%22s%22);%0A%09%09DateFormat millisec = new SimpleDateFormat(%22S%22);%0A%09%09int numberOfQuoutes = quotes.length;%0A%09%09long currentTime =  today.getTime();%0A%09%09long extraMilliSec = 0;%0A%09%09int temp;%0A%09%09String st = hr.format(today);%0A%09%09temp = Integer.parseInt(st);%0A%09%09extraMilliSec = (long)temp *60*60*1000;%0A%09%09%0A%09%09st = min.format(today);%0A%09%09temp = Integer.parseInt(st);%0A%09%09extraMilliSec += (long)temp *60*1000;%0A%09%09%0A%09%09st = sec.format(today);%0A%09%09temp = Integer.parseInt(st);%0A%09%09extraMilliSec += (long)temp *1000;%0A%09%09%0A%09%09st = millisec.format(today);%0A%09%09temp = Integer.parseInt(st);%0A%09%09extraMilliSec += (long)temp;%0A%09%09%0A%09%09currentTime -= extraMilliSec;%0A%09%09%0A%09%09Random seed = new Random(currentTime);%0A%09%09%0A%09%09int index = seed.nextInt(numberOfQuoutes);%0A%09%09System.out.println(%22Quote of the Day :%22);%0A%09%09System.out.println(quotes%5Bindex%5D);%0A%09%7D%0A%7D

Add solution for QuoteOfTheDay (#4; Package)