Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

q2: Write a public class named SnakeChar with the following A public constructor

ID: 3711177 • Letter: Q

Question

q2: Write a public class named SnakeChar with the following A public constructor that takes 4 Strings. The Strings should be stored in instance variables A public method named replaceChar that takes no parameters and has return type void. This method removes all instances of the character "b" from the instance variable storing the *String that was the second parameter in the constructor call *An overridden toString method that returns the stored strings separated by spaces. This *includes all the Strings from the constructor call and if replaceChar was called on this instance then the second String will not contain any instances of "b" *q3: Write a public class named AwardGetSet with the following public getter (accessor) and * setter (modifier) methods in the standard format shown in class such that after calling one of the setter methods with a particular value the corresponding getter method will * return the same value in each instance (object) of the class. You will need to create instance variables in the AwardGetSet class to achieve this functionality. *getter: "getold" setter: "setOld" type: "ArrayList" *getter: "getUnique" setter: "setUnique" type: "ArrayList" *getter: "getDown" setter: "setDown"type: "ArrayList" q4: Write a public class named RidgeChar with the following A public constructor that takes 3 Strings. The Strings should be stored in instance variables A public method named replaceChar that takes no parameters and has return type void. This * method removes all instances of the character "j" from the instance variable storing the *String that was the second parameter in the constructor call *An overridden toString method that returns the stored strings separated by spaces. This *includes all the Strings from the constructor call and if replaceChar was called on this instance then the second String will not contain any instances of "j"

Explanation / Answer

Hi Dear,

As per the chegg guideline, please post one question in a post.

I have answered Q2.

Please repost others in separate post.