Please enable JavaScript.
Coggle requires JavaScript to display documents.
Project Goal, Coggle.it - Coggle Diagram
Project Goal
Create 3 Classes, BaseStringList
BaseStringList
LinkedStringList
public LinkedStringList()
public LinkedStringList(StringList other)
other = object that implements StringList
head = other[0]
dynamic list
linked list of stings
only sees next index
length = size
instance:
Node head
Overrides:
add, clear, get, remove, slice, slice, reverse
ArrayStringList
public ArrayStringList()
items = new String[size];
public ArrayStringList(StringList other)
items = other;
other = object that implements StringList
dynamic list
array of strings
instance:
String[] items
Overrides:
add, append, contains, indexOf, prepend, slice, reverse
Implements
FancyStringList
7 methods:
add, append, contains, indexOf, prepend, slice, reverse
StringList
11 methods:
add, append, clear, get, isEmpty, makeString, prepend, remove, size, slice, toString
instance:
int size = 0
Coggle.it