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:
parent
70cbda58be
commit
122a43a5d6
|
@ -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) {
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.linkedlist;
|
||||
package com.baeldung.algorithms.middleelementlookup;
|
||||
|
||||
public class Node {
|
||||
private Node next;
|
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue