Posts
 
Reputation
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.

~448 People Reached
Favorite Forums
Favorite Tags
Member Avatar for FancyShoes

Hi I am trying to return a boolean value into another method, but it's not working. [CODE] public static boolean ItemFound(boolean item, String desc1, String desc2, JTextArea txt){ if(item == true) txt.setText(desc1); if(item == false){ txt.setText(desc2); item = true; } return item; }[/CODE] and inside the other method I have …

Member Avatar for FancyShoes
0
151
Member Avatar for FancyShoes

I want it so that when a user doesn't enter char r,p,g,m,c,y it will come up and say incorrect input enter 4 correct values. This is what I have. [CODE]while( (g.one || g.two || g.three || g.four) != ('r' || 'p' || 'g' || 'm' || 'c' || 'y') );[/CODE] …

Member Avatar for FancyShoes
0
129
Member Avatar for FancyShoes

why does this happen? I want it so that it does not display the text using an or statement and not using and or anything else. [CODE] if( 1 == (2 || 2 || 2)) { cout << "Should not display"; }[/CODE]

Member Avatar for Dave Sinkula
0
95
Member Avatar for FancyShoes

I am having problems with my white pegs for my mastermind game. The white pegs mean that the user guessed the right color but it is not in the right spot. The problem is that it prints out the white too many times for 1 guess. The problem is in …

0
73