String as a parameter and inserts it into the list at its


Writ-e a class, SortedStringList, a subclass of ArrayList, which has 2 methods;

1 add - accepts a String as a parameter and inserts it into the list at its proper position so the list always remains sorted alphabetically.

2 findPos - a helper method used by add to find the postition where the string should be inserted.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: String as a parameter and inserts it into the list at its
Reference No:- TGS02361247

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)