Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Heads or Tails

807601Dec 11 2007 — edited Jan 23 2008
I'm brand new to java and I'm seriously in need of some help. I'm on loops and while people have told me they are easy, I'm still a bit confused. This program has thrown me into programming something that flips a coin randomly getting heads or tails, based on user input.

How do I do this? Well, I can get the user input part in fine and get the program to run based on the number put in, it's just I can't get it to flip the coin. Help me out, if you please.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Dec 11 2007
10 comments
115 views