Recent content by dellmac

  1. 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...
  2. 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 =...
  3. 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!
  4. 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...
Back
Top