Bael 1773 refactor (#4498)

* Strange git issue with README.MD, wouldn't revert the file

* BAEL-1773 Coe moved to algorithm module
This commit is contained in:
Predrag Maric 2018-06-17 12:56:31 +02:00 committed by GitHub
parent 70cbda58be
commit 122a43a5d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -1,10 +1,8 @@
package com.baeldung.linkedlist;
package com.baeldung.algorithms.middleelementlookup;
import java.util.LinkedList;
import java.util.Optional;
import com.baeldung.linkedlist.Node;
public class MiddleElementLookup {
public static Optional<String> findMiddleElementLinkedList(LinkedList<String> linkedList) {

View File

@ -1,4 +1,4 @@
package com.baeldung.linkedlist;
package com.baeldung.algorithms.middleelementlookup;
public class Node {
private Node next;

View File

@ -1,11 +1,13 @@
package com.baeldung.linkedlist;
package algorithms;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import com.baeldung.algorithms.middleelementlookup.MiddleElementLookup;
import com.baeldung.algorithms.middleelementlookup.Node;
import org.junit.Test;
import java.util.LinkedList;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
public class MiddleElementLookupUnitTest {