Question
my code java has errors, errors are below code pointed out, pls help homework directions are after code and errors package pa1; import edu.princeton.cs.algs4.In; import
my code java has errors, errors are below code pointed out, pls help homework
directions are after code and errors
package pa1; import edu.princeton.cs.algs4.In; import edu.princeton.cs.algs4.StdOut; import edu.princeton.cs.algs4.ST; import edu.princeton.cs.algs4.SeparateChainingHashST; import edu.princeton.cs.algs4.LinearProbingHashST; import edu.princeton.cs.algs4.SequentialSearchST; import static javax.swing.UIManager.get; public class TestPerf { private ST
This is what i wrote but it has errors in java
These are the errors it shows:
PS C:\Users\src> javac -d out pa1/TestPerf.java pa1\TestPerf.java:2: error: package edu.princeton.cs.algs4 does not exist import edu.princeton.cs.algs4.In; ^ pa1\TestPerf.java:3: error: package edu.princeton.cs.algs4 does not exist import edu.princeton.cs.algs4.StdOut; ^ pa1\TestPerf.java:4: error: package edu.princeton.cs.algs4 does not exist import edu.princeton.cs.algs4.ST; ^ pa1\TestPerf.java:5: error: package edu.princeton.cs.algs4 does not exist import edu.princeton.cs.algs4.SeparateChainingHashST; ^ pa1\TestPerf.java:6: error: package edu.princeton.cs.algs4 does not exist import edu.princeton.cs.algs4.LinearProbingHashST; ^ pa1\TestPerf.java:7: error: package edu.princeton.cs.algs4 does not exist import edu.princeton.cs.algs4.SequentialSearchST; ^ pa1\TestPerf.java:11: error: cannot find symbol private ST
Test Hash Table - number of overall keys before deletion (5.0/5.0)
Test Hash Table - number of valid keys after deletion (0.0/5.0)Test Failed: Should be 8 expected:<8> but was:<10> at pa1.tests.TestLinearProbing.test_Hash_valid_keys_after:58 (TestLinearProbing.java)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started