Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions ImplementingLists.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,35 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library" scope="TEST">
<library name="JUnit4">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.13.1/junit-4.13.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" scope="TEST">
<library name="JUnit5.8.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.8.1/junit-jupiter-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.8.1/junit-jupiter-api-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.8.1/junit-platform-commons-1.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.8.1/junit-jupiter-params-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.8.1/junit-jupiter-engine-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.8.1/junit-platform-engine-1.8.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>
46 changes: 46 additions & 0 deletions src/Main.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
import edu.greenriver.sdev333.ArrayList;
import edu.greenriver.sdev333.DoublyLinkedList;
import edu.greenriver.sdev333.List;

import java.util.Iterator;

public class Main {
public static void main(String[] args) {

System.out.println("Hello world!");

List<String> friends = new ArrayList<String>();
// System.out.println("Initial size is: "+friends.size());
// System.out.println("List is empty: " + friends.isEmpty());
//
// friends.add("Ehren");
// System.out.println("Size after added one: "+friends.size());

for(int i = 0; i < 50; i++){
friends.add("Friend"+i);
}
// System.out.println("Size after many added: "+friends.size());

// System.out.println(friends.contains("Friend1"));
// System.out.println(friends.contains("Friendx"));


System.out.println(friends);

// System.out.print(System.lineSeparator());
// Iterator<String> itr = friends.iterator();
// while(itr.hasNext()){
// String name = itr.next();
// System.out.print(name+" ");
// }
//
// System.out.print(System.lineSeparator());
// for(String name : friends){
// System.out.print(name+ " ");
// }

List<String> friendsLL = new DoublyLinkedList<>();

for(int i = 0; i < 50; i++){
friendsLL.add("Friend"+i);
}

System.out.println(friendsLL);

}
}
Loading