I'm having a little trouble in my java class. This is the assignment:
Create a Dice class.
Requirements:
-At least two instance fields
-At least two constructors (in addition to the default)
-At least four main methods
One die will return a random number using the user-specified number of sides and the low number on the die (the other numbers go up by ones from the low number).
Another die will simulate a six-sided colored die that produces a random number from 1-6 (and those numbers are assigned to certain colors to return to the user).
This is a simple text program, no graphics. Can someone help me at least get started if not help chuck out a lot of the code? I have been on top of everything until now. I'm not so sure how all of this 'create your own method' works.
2007-02-01
12:23:59
·
1 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design