mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
Update DoublyLinkedList.java
This commit is contained in:
@ -34,9 +34,9 @@ class DoublyLinkedList{
|
||||
*/
|
||||
public DoublyLinkedList(int[] array){
|
||||
if (array == null) throw new NullPointerException();
|
||||
for (int i:array) {
|
||||
insertTail(i);
|
||||
}
|
||||
for (int i:array) {
|
||||
insertTail(i);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user