Testing add(element):
The Alist:{}
Item added: (Amy-1). The Alist:{(Amy-1)}
Item added: (Bob-2). The Alist:{(Amy-1),(Bob-2)}
Item added: (Cal-3). The Alist:{(Amy-1),(Bob-2),(Cal-3)}
Item added: (Dot-4). The Alist:{(Amy-1),(Bob-2),(Cal-3),(Dot-4)}
Testing add(index, element):
Item inserted at index 2: (Eli-5). The Alist:{(Amy-1),(Bob-2),(Eli-5),(Cal-3),(Dot-4)}
Item inserted at index 4: (Fay-6). The Alist:{(Amy-1),(Bob-2),(Eli-5),(Cal-3),(Fay-6),(Dot-4)}
Testing get(index):
There are 6 items in the list:
Item(0): (Amy-1). Item(1): (Bob-2). Item(2): (Eli-5). Item(3): (Cal-3). Item(4): (Fay-6). Item(5): (Dot-4).
Items added: Gil,Hop,Kim,Lee.
The Alist:{(Amy-1),(Bob-2),(Eli-5),(Cal-3),(Fay-6),(Dot-4),(Gil-7),(Hop-8),(Kim-9),(Lee-10)}
There are 10 items in the list,
Testing set(index, element):
Set Item(4) to (Gil-7).The Alist:{(Amy-1),(Bob-2),(Eli-5),(Cal-3),(Gil-7),(Dot-4),(Gil-7),(Hop-8),(Kim-9),(Lee-10)}
Set Item(8) to (Hop-8).The Alist:{(Amy-1),(Bob-2),(Eli-5),(Cal-3),(Gil-7),(Dot-4),(Gil-7),(Hop-8),(Hop-8),(Lee-10)}
Testing contains(element):
The AList contains (Dot-4).
The AList does not contain (Mak-11).
Testing remove(index):
Removed Item(3): (Cal-3). The Alist:{(Amy-1),(Bob-2),(Eli-5),(Gil-7),(Dot-4),(Gil-7),(Hop-8),(Hop-8),(Lee-10)}
Removed Item(5): (Gil-7). The Alist:{(Amy-1),(Bob-2),(Eli-5),(Gil-7),(Dot-4),(Hop-8),(Hop-8),(Lee-10)}
There are 8 items in the list.
Testing remove(element):
Removed item containing (Amy-1). The Alist:{(Bob-2),(Eli-5),(Gil-7),(Dot-4),(Hop-8),(Hop-8),(Lee-10)}
Cannot remove (Mak-11). Not in AList.
Testing indexOf(element):
The first occurrence of (Gil-7) is at index: 2
The AList does not contain (Mak-11).
Removed Item(0): (Bob-2) The Alist:{(Eli-5),(Gil-7),(Dot-4),(Hop-8),(Hop-8),(Lee-10)}
Removed Item(0): (Eli-5) The Alist:{(Gil-7),(Dot-4),(Hop-8),(Hop-8),(Lee-10)}
Removed Item(0): (Gil-7) The Alist:{(Dot-4),(Hop-8),(Hop-8),(Lee-10)}
Removed Item(0): (Dot-4) The Alist:{(Hop-8),(Hop-8),(Lee-10)}
Removed Item(0): (Hop-8) The Alist:{(Hop-8),(Lee-10)}
Removed Item(0): (Hop-8) The Alist:{(Lee-10)}
Removed Item(0): (Lee-10) The Alist:{}
Is the list empty? true
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more