Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #44.3K
2 Posted Topics
think of a number and allow the user to guess it [code]import java.util.*; public class ThinkNumber { public static void main (String args[]) { //generate number in range 1 - 100 //prompt user to enter guess //loop until correct number is guessed //check guess and output hint //guess is correct …
Re: Dice Roll Help
[code]public class MatchingPair { public static void main(String [] args) { int dice = (int)(Math.random() * 6) + 1; int dice2 = (int)(Math.random() * 6) +1; int count = 1; while (dice != dice2) { System.out.println("Throw: " + dice +" and "+dice2); count = count + 1; dice = (int)(Math.random() …
The End.
dave013