Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2008, 06:04 AM
Member
 
Join Date: Jul 2008
Posts: 1
nube07 is on a distinguished road
Roll dice class with three dices
Please disregard this thread

Last edited by nube07 : 07-14-2008 at 03:47 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-08-2008, 06:48 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,609
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Do you want to match three numbers? Little bit confusing about your question.

Code:
while ((total1 != total2 & total3 != total2));
Seems here you are trying to compare two numbers only.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-08-2008, 06:36 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
Could you post the output from the program and explain why it is not what you want?

What are die1, die2 and die3? They appear to be variables in the PairOfDice class. What values do they have? How are those values set?

Last edited by Norm : 07-08-2008 at 06:38 PM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-13-2008, 06:03 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 899
Fubarable is on a distinguished road
Quote:
Originally Posted by nube07 View Post
I am trying to match three numbers
You're not explaining things well, and this is making it harder for us to help you.

One great resource is this article entitled How To Ask Questions The Smart Way . It will tell you how to formulate your questions so that the folks here will be better able to answer them. Good luck.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-14-2008, 03:37 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 899
Fubarable is on a distinguished road
Way to go! That's the best outcome that can be seen here.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java help please- two sided dice pat8 Advanced Java 3 07-01-2008 04:25 AM
Roll 2-Dice "Pig" Game Help King8654 AWT / Swing 7 04-07-2008 08:58 PM
Defective code for dice, help please? byron New To Java 10 04-01-2008 08:22 AM
Help debugging a dice game Windoze New To Java 7 11-22-2007 03:01 AM
help debugging a dice game Windoze Advanced Java 0 11-17-2007 12:28 AM


All times are GMT +3. The time now is 01:53 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org