Fix two specific methods in this assignment

Basically, this was done by another expert who took on way too many assignments and decided to return null on a couple of functions, effectively allowing the program to compile but not actually doing anything; thus, I ended up failing a lot of test cases.

The two functions I need fixed are public E element() and public E peek() in PriorityTree.java

I am also attaching the log text file for the test cases that were failed. Just focus on the assertion errors for element() and peek(), I’m only allowed to fix those particular methods because they’re responsible for so many of the test cases.

Reference the txt file; I’m attaching all the classes (there are 3) for your reference but mainly you’ll be working with PriorityTree

You’re just rewriting two functions within a class so please don’t charge too much