13. Shopping List
See the ArrayList presentation, pages 9-11, exercise ArrayList 4/4a/4b.
The setup code is to provide you with a sample shopping list to use in your tests.
Testing suggestion:
@Test
public void test_example() {
ArrayList<Integer> n = new ArrayList<>();
n.add(5); n.add(25); n.add(100);
List<Integer> correct = Arrays.asList(5,25,100);
assertEquals(correct, n);
}
More detailed example testing code and a useless function so the tests compile.