Question: My program doesn't run right as it keeps saying the password is poor even though it meet the conditions to be excellent. Can you check

My program doesn't run right as it keeps saying the password is poor even though it meet the conditions to be excellent. Can you check and fix where the problem is ? Here is my program:

import java.util.*;

public class Password { public static boolean hasUpper = false; public static boolean hasLower = false; public static boolean hasDigit = false; public static boolean validPassword(String s) { if (s.length() 7 ) { return false; } if(s.length() >=5 && s.length()

My program doesn't run right as it keeps saying the password is

Glest_cynthia.jave G:\CSC 2920 Spring 2001\Programming Assignment -GRASP CSD (Java) Elle Edit View Build Project Settings Tools Window Help abe AED 50 FOLIAMI Compile Messages GRASP Messages Run IO Interactions End ----GRASP exec: java lest_cynthia Please input your code. Clear 1234567 Help The orginal code is: 1 2 3 4 5 6 7 The password is poor Would you like to continue or try again (V/y)? Please input your code. aqwerty The orginal code is: a qwerty The password is poor Would you like to continue or try again (V/y)? Please input your code. 12 Your code does not have between 5 and 7 characters. Would you like to continue or try again (V/y)? Please input your code QA123 The orginal code is: QA123 * The password is excellent Would you like to continue or try again (V/y)? ----GRASP: operation complete. BEDEU Line:68 Col:54 Code:32 Top:57 Ovsel

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!