#Map III

1 messages · Page 1 of 1 (latest)

tight marsh
#

The document link is attached below:
https://docs.google.com/document/d/11S7hRlZ3DIa01xo7aNZ7DfMLhIm-zSAUEtiaVrJQZD0/edit

My src files are attached.
I'm having trouble implementing:

BSTMap.java
Your BSTMap class should use an instance variable of type BST to store its entries. Note that BSTMap should only call methods from BST, BSTMap should not edit the BST's nodes directly. You have to implement the following methods for the BSTMap class:

public V put( K key, V value )
Associates the given key with the given value in the map. Should not add duplicate items to the map. If the map previously contained a mapping for the key, the old value is replaced by the specified value.

Here is my gradescope error:
Starting a Gradle Daemon (subsequent builds will be faster)

Task :clean

Task :compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :processResources NO-SOURCE
Task :classes
Task :jar
Task :assemble

Task :compileTestJava FAILED
/autograder/source/7P/src/test/MapTest.java:687: error: cannot find symbol
assertTrue(TreeApp.validateTree(list, bm.getTree()));
^
symbol: method getTree()
location: variable bm of type BSTMap<Integer,String>
/autograder/source/7P/src/test/MapTest.java:726: error: cannot find symbol
assertTrue(TreeApp.validateTree(list, bm.getTree()));
^
symbol: method getTree()
location: variable bm of type BSTMap<Integer,String>
/autograder/source/7P/src/test/MapTest.java:762: error: cannot find symbol
assertTrue(TreeApp.validateTree(list, bm.getTree()));

peak thistleBOT
#

This post has been reserved for your question.

Hey @tight marsh! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

tight marsh
#

This is an I've been working on for a while. I'm stuck on the last implementation. If anyone could help that would be amazing

peak thistleBOT
#

<@&765578700724371486>

Requested by olivia_m325#7108
whole crypt
#

Hi, there could be some other things going on but it looks like your class BSTMap.java is missing the method "getTree()" specified in the doc

#

@tight marsh