Question: Please verify your email. Resend verification link share your program enhance your work after submitting export to repl Due: Jan 07, 2021 11:59 pm submit

Please verify your email. Resend verification link share your program enhance your work after submitting export to repl Due: Jan 07, 2021 11:59 pm submit back to classroom run Instructions from your teacher: Main.java Password.java: public class Password { private Password() { 1) Complete the check method of the Password class. The parameter can only contain letters and at least one letter must be upper case and at least one must be lower case. Use the two helper methods: islower and isUpper (which you must also complete). } For example, if the parameter is "YElloQ, the method should return true. If the parameter is "UP8down, the method should return false. 1 2 3 4- 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 public static boolean check( Strings ) { /* this should return true if (1) the parameter contains only letters and (2) there is at least one lower-case and one upper case letter */ Note: Typically these helper methods are private but I need them to be public so that the automatic tests work. 2) Complete the main method and test your solution before submitting. (5 points) /* hint: loop through the string and count how many upper and lower case letters are in the string (use the helper methods). Using these two numbers you can figure out when to return true or false */ } /* precondition: $1. length == 1 postcondition: returns true if the character is a lower-case letter; otherwise it returns false */ public static boolean is Lower( String s1 ) 22 23 24 - 25 26 27 28 29 30 // use the compare to method // if s1.length != 1 then return false } /* precondition: $2.length == 1 postcondition: returns true if the character is a upper-case letter; otherwise it returns false */ nublic static boolean islinner/ String 2 31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
