Question: This is the JAVA Question. Exercise 1.22. Write a class that can generate random strings with characters in a given set. For example, RandomStringGenerator generator

Exercise 1.22. Write a class that can generate random strings with characters in a given set. For example, RandomStringGenerator generator generator.addRange('a', 'z'); generator.addRange('A', 'Z'); = new RandomStringGenerator(); String s = generator.nextString(10); // A random string consisting of ten lowercase // or uppercase English characters Your class should keep an ArrayList of Range objects.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
