Question: Write a method called password that as a string argument and then returns true or false depending is the string contains 1 or more digits.

 Write a method called password that as a string argument and

Write a method called password that as a string argument and then returns true or false depending is the string contains 1 or more digits. BTW, only 10 character strings are allowed. validpassword more than 10 and no digits scheiman2x yes outline of the method find the length if length10 then return false else go thru the entire string char by char if one is a digit return true (immediately) else at the end of the loop return false char x = word.charAt(i) if (x >='0' &&x ='0' &&x

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!