Question: Question 3. The target interface is for a simple set of char: public interface Charset { boolean addToset (char e); // adds e to the


Question 3. The target interface is for a simple set of char: public interface Charset \{ boolean addToset (char e); // adds e to the set if it is NoT already in the set. // returns true if e is added, false if e was already in the set. boolean deletefromset(char e); // removes e from the set if it is in the set. // returns true if e was in the set, false if e is not in the set. boolean setcontains (char e); // returns true if e is in the set, false if not. int sizeofset(); // the number of elements in the set. public class Charsetimpl implements Charset \{ private StringBuilder bldr; public Charsetimpl (StringBuilder builderIn) \{ bldr = builderIn; doverride public boolean addToset(char e) \{ \} doverride public boolean deleteFromset(char e) \{
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
