@Test(expected = IllegalArgumentException.class) public void shouldNotAcceptNullListAsSecondParameterReverse() { sumLists.sumReverse(new ListNode<Integer>(0), null); }
public int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2) { validateInput(n1, n2); int n1Value = calculateReverseNumber(n1); int n2Value = calculateReverseNumber(n2); return n1Value + n2Value; }
SumLists { public int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2) { validateInput(n1, n2); int n1Value = calculateReverseNumber(n1); int n2Value = calculateReverseNumber(n2); return n1Value + n2Value; } }
SumLists { public int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2) { validateInput(n1, n2); int n1Value = calculateReverseNumber(n1); int n2Value = calculateReverseNumber(n2); return n1Value + n2Value; }  }
SumLists { public int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2) { validateInput(n1, n2); int n1Value = calculateReverseNumber(n1); int n2Value = calculateReverseNumber(n2); return n1Value + n2Value; }  int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2); int sum(ListNode<Integer> n1, ListNode<Integer> n2); }
SumLists { public int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2) { validateInput(n1, n2); int n1Value = calculateReverseNumber(n1); int n2Value = calculateReverseNumber(n2); return n1Value + n2Value; }  int sumReverse(ListNode<Integer> n1, ListNode<Integer> n2); int sum(ListNode<Integer> n1, ListNode<Integer> n2);  }