<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="serif">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. <br>
<br>
<a class="moz-txt-link-freetext" href="http://theochem.mercer.edu/csc204">http://theochem.mercer.edu/csc204</a><br>
<br>
<br>
public class Example{<br>
<br>
public static void main(String args[]){<br>
<br>
String roll, orderedRoll;<br>
<br>
roll = Dice.roll();<br>
orderedRoll = Dice.order(roll);<br>
<br>
System.out.println( roll );<br>
System.out.println( orderedRoll );<br>
<br>
}<br>
}<br>
<br>
<br>
I ran this twice to produce the following output....<br>
<br>
15324<br>
12345<br>
<br>
<br>
21114<br>
11124<br>
<br>
<br>
<br>
</font>
<pre class="moz-signature" cols="72">--
Andrew J. Pounds, Ph.D. (<a class="moz-txt-link-abbreviated" href="mailto:pounds_aj@mercer.edu">pounds_aj@mercer.edu</a>)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
<a class="moz-txt-link-freetext" href="http://faculty.mercer.edu/pounds_aj">http://faculty.mercer.edu/pounds_aj</a>
</pre>
</body>
</html>