Question: *in Java and screenshots please*** 1) Password Verification: The user given string should : * have 6 characters * have atleast one uppercase character *
1) Password Verification:
The user given string should :
* have 6 characters
* have atleast one uppercase character
* have atleast one lowercase character
* have atleast one digit
Only if the user given string has these conditions, it can be considered as a valid password
2) Given a sentence, find total number of words as well as the unique words and how many times each unique word occurs.
Sample i/p: row row row your boat gently down the stream merrily merrily merrily merrily life is but a dream
Expected output:
total number of words : 18
number of unique words : 13
row : 3
your : 1
boat : 1
gently : 1
down : 1
the : 1
stream : 1
merrily : 4
life : 1
is : 1
but : 1
a : 1
dream : 1
1) Password Verification: The user given string should: have 6 characters have atleast one uppercase c have atleast one lowercase character have atleast one digit Only if the user given string has these conditions, it can be considered as a valid password Sample Vp: row row row your boat gently down the stream mermily merrily merrily mernily life is but a dream Expected output total number of words : 18 number of unique words: 13 row:3 your: 1 boat: 1 gently:1 down: 1 the: 1 stream:1 merrily:4 life:1 is:1 but:1 dream 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
