Write a Java program that prompts the user to enter a password that matches a specific pattern using a single regex statement as covered in your textbook. Your program must approve the user's entry.. Here is the pattern, in this order: 1 or more upper case letters two lower case letters 1 or 2 digits zero or 1 upper case letters any two of this group @#$%^&

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 12E
icon
Related questions
Question

Write a Java program that prompts the user to enter a password that matches a specific pattern using a single regex statement as covered in your textbook. Your program must approve the user's entry.. Here is the pattern, in this order:

  • 1 or more upper case letters
  • two lower case letters
  • 1 or 2 digits
  • zero or 1 upper case letters
  • any two of this group @#$%^&
  •  
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,