Question: Question 3:(20 points Write a class that can generate random strings with characters in a given set. For example RandomStringGenerator generator - new RandomStringGeneratorO; generator.addRange(.a.,z');

 Question 3:(20 points Write a class that can generate random strings

Question 3:(20 points Write a class that can generate random strings with characters in a given set. For example RandomStringGenerator generator - new RandomStringGeneratorO; generator.addRange(.a.,"z'); generator.addRange , '; String s-generator.nextString(10); # A random string consisting of ten lowercase // or uppercase English characters RandomString Generator is the class you will be writing. It should have (at least) two functions addRange and nextString. addRange should take two char values and add the range to a list of values. nextString should take a length and generate a random string of that length. Next Previous 6 MacBook Air F8 0 F4 F2 4

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!