Update DoublyLinkedList.java

This commit is contained in:
Doru Kesriyeli
2018-10-07 17:29:23 -07:00
committed by GitHub
parent 3562e83985
commit cc0980c23d

View File

@ -34,9 +34,9 @@ class DoublyLinkedList{
*/ */
public DoublyLinkedList(int[] array){ public DoublyLinkedList(int[] array){
if (array == null) throw new NullPointerException(); if (array == null) throw new NullPointerException();
for (int i:array) { for (int i:array) {
insertTail(i); insertTail(i);
} }
} }
/** /**