this is a computer science project in which we have to make an abstract class called base string list, and arraystsring list and linkedstring list. THe requirements and directions and the start code...

1 answer below »
this is a computer science project in which we have to make an abstract class called base string list, and arraystsring list and linkedstring list. THe requirements and directions and the start code is in the website below. It lists what not to do to fail the assignment and everything is labeled in the website.
https://github.com/cs1302uga/cs1302-phased-list/blob/main/README.md
Answered 5 days AfterMar 10, 2021

Answer To: this is a computer science project in which we have to make an abstract class called base string...

Sonu answered on Mar 15 2021
142 Votes
//package src;
//import cs1302.adt.StringList;
public class ArrayStringList extends BaseStringList
{
    private String[] items;
    private int storage;
    
    ArrayStringList(){
        super();
        items = new String[5];
        storage = 5;
    }
    @Override
    public void clear() {
        baseitems = "";
        size = 0;
        items = new String[0];
    }
    @Override
    public String get(int index) {
        updateFromBase();
        if(index < 0 && index >= size) {
            throw new IndexOutOfBoundsException();
        }
        return items[index];
    }
    @Override
    public String remove(int index) {
        if(index < 0 && index >= size) {
            throw new IndexOutOfBoundsException();
        }
        
        String res = items[index];
        for(int i = index;i            items[i] = items[i+1];
        }
        int c = 0;
        String a = "";
        String b = "";
        for(int i = 0;i
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here