Search:

Type: Posts; User: dicdic

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    1,260

    Re: First Java Program -- Single Die

    your teacher is right. what he/she wants you to create is a Dice class. in your case, you have created a simple program (with main method) which is capable of printing a random number of dice.
    Here...
  2. Replies
    3
    Views
    1,260

    Re: First Java Program -- Single Die

    paste your code here, tell us what or where you're stuck. if it has compilation errors or runtime errors paste it here also.
    have you tried using the Random class in java.util? its java.util.Random...
Results 1 to 2 of 2