No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 … |
|
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] … |
|
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] |
|
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 … |