Results 1 to 4 of 4
  1. #1
    seaisle68 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default Making a Coin Application

    I need help making an application that creates a coin class that includes a variable faceUp that stores either a 0 for a heads up or 1 for tails up, an accessor method named showFace that returns the value of faceup, and a modifier named flipCoin that assigns a random integer between 0 and 1, inclusive, to faceUp.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by seaisle68 View Post
    I need help making an application that creates a coin class that includes a variable faceUp that stores either a 0 for a heads up or 1 for tails up, an accessor method named showFace that returns the value of faceup, and a modifier named flipCoin that assigns a random integer between 0 and 1, inclusive, to faceUp.
    And I think I speak for all in wishing you much luck at succeeding with this assignment. If you have a specific question though, please don't hesitate to ask.

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,889
    Rep Power
    8

    Default

    What do you need help with? What have you tried? Where are you stuck? What worked, what didn't work? How didn't it work? Be specific, and post an SSCCE that demonstrates what you've got so far.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Coin application
    By kkGG in forum New To Java
    Replies: 4
    Last Post: 11-08-2010, 12:24 AM
  2. Making my application Friend Friendly
    By chayan in forum Java 2D
    Replies: 3
    Last Post: 07-04-2010, 06:27 PM
  3. Random coin flip application
    By Boomer1 in forum New To Java
    Replies: 8
    Last Post: 12-18-2009, 02:57 AM
  4. Making application run by itself
    By quickfingers in forum New To Java
    Replies: 5
    Last Post: 06-13-2009, 07:05 PM
  5. Making Java Application Executable
    By jadaleus in forum Advanced Java
    Replies: 4
    Last Post: 10-23-2008, 12:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •