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...
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 =...
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...