"Random Quote Of The Day" program Problem Statement:  


  Create a class diagram and Java code for the following system and
  scenario, taking into account the possibility of future extensions.
  "The system is a command line utility that prints a short 'quote of
  the day' on the user's terminal when run. To begin with the quote is
  selected randomly from a set of hard-coded strings within the program
  itself, but that might change later on -- the quotes might be based on
  the user's history, the time of day, the date, etc.. Scenario:
  
  
  User types "java QuoteOfTheDay" on the command line.
  System prints out a quote of the day, with an attribution.
  


This is my code for the following:

package quoteOfTheDay;
import java.util.Random;

public class QuoteOfTheDay {

    public static void main(String[] args) {

        System.out.println();

        Random rand = new Random();
        int randomInt = rand.nextInt(20);

        switch (randomInt) {
        //Print a quote depending upon the generated random number..
        }
    }
}


Is this the right approach? Am I missing some things from the problem requirements? I am open for any kind of suggestions.
Am I missing some things from the problem requirements?


I would say that you are:


  Create a class diagram and Java code for the following system and scenario, taking into account the possibility of future extensions.


You don't really have classes (and thus also didn't really take into account future extensions).

I would think that the expectation is something like this:

Create classes Quote, Person (for the attribution, maybe also an Attribution class), a class containing a collection of Quotes, from which you can retrieve items via index, an Output class with methods for print quote and print attribution.

That way, it would be easy to add a GUI for output, to add additional attribution information, add a date for the quote, etc.

Misc

There isn't really much to your code to review, but a couple of points:


you should not have all your code in the main method. The main method should only start your program, not perform any actions itself.
package names should be all lowercase
extract magic numbers to fields (but if you actually change your code as I suggested above, you would not need it at all)