Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: coin

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Arrow coin

    write a class called coin
    the coin class should have the following fields
    a string named sideup and held either heads or tails indicating the side of the coin that is facing up

    the coin class should have the following methods
    a no arg constructor that determines the side of the coin randomly
    a void method named toss that simulates the tossing of the coin

    a method called getsideup that returns the method of side up field
    i don't know and i am a beginner so want help please :'(


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: coin

    Do you have any specific questions about your assignment?
    Please post your code and any questions about problems you are having.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: coin

    i want the code of this specific java class i havn't any code i need it
    please

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: coin

    i want the code of this specific java class
    You've come to the wrong place. We're here to help students learn how to programs in java. We do NOT write code for them.
    If you want to learn programming, we'll help you with your code and your questions.
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following 2 Users Say Thank You to Norm For This Useful Post:

    ahmed abd elnasser (December 24th, 2012), curmudgeon (December 24th, 2012)

Similar Threads

  1. Coin
    By acl2011 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 12th, 2012, 12:00 AM
  2. [SOLVED] Please help me with the Coin flip rogram.
    By nikhilrudrangi in forum Java Theory & Questions
    Replies: 1
    Last Post: October 7th, 2012, 10:10 PM
  3. Project Coin and java 7
    By Kerr in forum The Cafe
    Replies: 4
    Last Post: March 27th, 2011, 10:53 AM
  4. Flipping a coin
    By jimboslice in forum Loops & Control Statements
    Replies: 2
    Last Post: October 18th, 2010, 11:13 AM
  5. Question about my coin toss program
    By CheekySpoon in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 9th, 2010, 04:14 AM

Tags for this Thread