@Test public void shouldFindLastElementFromAListOfAlphabetsUsingRecursion() throws Exception { assertThat(P01.lastRecursive(asList("a", "b", "c", "d")), is(equalTo("d"))); }
@Test public void shouldFindLastElementFromALinkedListOfAlphabets() throws Exception { LinkedList<String> alphabets = linkedList("a", "b", "c", "d"); assertThat(P01.last(alphabets), is(equalTo("d"))); }