[CSC 204] Assignment 3

Andrew J. Pounds pounds_aj at mercer.edu
Sun Feb 23 05:51:27 EST 2014


I know that some of you want to get started on Assignment 3.  I have now 
placed a PDF format of the assignment on the class website as well as 
the Dice.jar file and the API for the Dice class.   The following 
Example program demonstrates how you should call these static methods in 
the Dice.jar file.

http://theochem.mercer.edu/csc204


public class Example{

     public static void main(String args[]){

         String roll, orderedRoll;

         roll = Dice.roll();
         orderedRoll = Dice.order(roll);

         System.out.println( roll );
         System.out.println( orderedRoll );

     }
}


I ran this twice to produce the following output....

15324
12345


21114
11124



-- 
Andrew J. Pounds, Ph.D.  (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
http://faculty.mercer.edu/pounds_aj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc204/attachments/20140223/19d55d23/attachment.html>


More information about the csc204 mailing list