Question: // returns a random ID (length = 7). // do not use ASCII value(code) public String nextID() { // . . . } return ID;

// returns a random ID (length = 7). // do not use ASCII value(code)

public String nextID() { // . . . } return ID; } ID Rule: 1) ID must be 8 characters in length. 2) ID must have lower-case AND upper case. 3) ID must start with a letter like [a-z A-Z] 4) Usernames must have at least one number like [0-9] 5) Usernames must have at least one of any special characters

Useful Information

Character.isLetter(c)

Character.isDigit(c)

Character.isUppercases

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!