Recent content by dellmac
-
D
Java Java- Set hasDigit to true if the 3-character passCode contains a digit.
So I just got it. I believe I used the long way though; not sure if there is an easier way: if (Character.isDigit(passCode.charAt(0))) { hasDigit = true; } if (Character.isDigit(passCode.charAt(1))) { hasDigit = true; } if...- dellmac
- Post #2
- Forum: Programming and Computer Science
-
D
Java Java- Set hasDigit to true if the 3-character passCode contains a digit.
Been working this problem for hours and can't seem to get it right. Any assistance would be greatly appreciated! Note: Green colored text is the editable text public class CheckingPasscodes { public static void main (String [] args) { boolean hasDigit = false; String passCode =...- dellmac
- Thread
- Java Set
- Replies: 2
- Forum: Programming and Computer Science
-
D
Java Java Programming Boolean if-else statement
Alright thank you! Your response gave me a great understanding, and I have it now. Really appreciate the assistance!- dellmac
- Post #3
- Forum: Programming and Computer Science
-
D
Java Java Programming Boolean if-else statement
Looking for some assistance with this. I've been messing with this for hours and can't seem to get it right. Some assistance would be greatly appreciated. What I have below is not correct. Material in green cannot be changed. Thanks!Print "Balloon" if isBalloon is true and isRed is false. Print...- dellmac
- Thread
- Java Programming
- Replies: 2
- Forum: Programming and Computer Science