b) A programmer would like to modify the StringAnalyzer class to limit the length of the large string that can be passed as input to countRepeat countRepeat. A call to countRepeat with a value of largest that is longer than the maximum length would return -1. The programmer would changes to the signature of the countRepeat method or overloading countRepeat. Write a description of how you would change the stringAnalyzer class in order to support this modification. Do not write the program code for thi Make sure to include the following in your response. • Identify any new or modified variables or methods. Describe, for each new or revised variable or method, how it would change or be implemented, including visibility and type 4. GENERATE ID QUESTION This question involves generating a String that will be used as an identifier. You will write the generateID metho public class Identifier /** Encodes a string as an integel and returns the encoded int value */ public static int encodeToNumber (String str) { /*
(b) A programmer would like to modify the StringAnalyzer class to limit the length of the large string that can be passed as input to countRepeat countRepeat. A call to countRepeat with a value of largest that is longer than the maximum length would return -1. The programmer would changes to the signature of the countRepeat method or overloading countRepeat. Write a description of how you would change the stringAnalyzer class in order to support this modification. Do not write the
Trending now
This is a popular solution!
Step by step
Solved in 4 steps