From 3bea9472ee82fc5640ee8134015660733e7c16b0 Mon Sep 17 00:00:00 2001 From: MatthewYu06 Date: Mon, 18 Sep 2023 18:58:04 -0400 Subject: [PATCH] made _Node and main method --- README.md | 6 +++--- src/Tree.java | 4 ++++ src/_Node.java | 10 ++++++++++ src/main.java | 28 ++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 src/_Node.java create mode 100644 src/main.java diff --git a/README.md b/README.md index 0f9a655..41efcd6 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,13 @@ It should feel quite similar to code you would have seen in your first-year CS c In a small group (around 4 students), choose one of you to make a fork of https://github.com/CSC207-2023F-UofT/multiset-adt -- [ ] Each other team member should make a fork of that repo (or the repository owner can add the others +- [X] Each other team member should make a fork of that repo (or the repository owner can add the others as collaborators). -- [ ] Take the time to skim the rest of the instructions to get a better sense of what you'll be doing +- [X] Take the time to skim the rest of the instructions to get a better sense of what you'll be doing in this activity. If you have any immediate questions, raise these with your group or ask your TA. -- [ ] As a team, explore the python code base and identify specific pieces of code that will need to +- [X] As a team, explore the python code base and identify specific pieces of code that will need to be completed. (See the general strategies and advice further below, ask other groups, or ask your TA for advice as needed.) - The next section highlights a few aspects of the code which your team should think about as you diff --git a/src/Tree.java b/src/Tree.java index 458a7c7..acdd00e 100644 --- a/src/Tree.java +++ b/src/Tree.java @@ -1,2 +1,6 @@ +// matthew test + public class Tree { } + + diff --git a/src/_Node.java b/src/_Node.java new file mode 100644 index 0000000..86e77ed --- /dev/null +++ b/src/_Node.java @@ -0,0 +1,10 @@ +public class _Node { + Object item; + _Node next; + + public _Node(Object item){ + this.item = item; + this.next = null; + } + +} diff --git a/src/main.java b/src/main.java new file mode 100644 index 0000000..75c86e2 --- /dev/null +++ b/src/main.java @@ -0,0 +1,28 @@ +import java.util.ArrayList; +import java.util.Random; +public class main { + public static void main(String[] args) { + + + } + + public void profileMultiSet(MultiSet my_input, int n){ + ArrayList items_added = new ArrayList(); + Random rand = new Random(); + for (int i = 0; i