PLEASE PUT THE TWO METHODS BELOW IN YOUR SMARTVIC CLASS
Steps
1) Think about the problem
2) Come up with a written plan in pseudocode
3) Convert your pseudocode to Java code
4) Compile your code to make sure you have no syntax errors
5) Create a new SmartVic object (little red box on main BlueJ screen)
6) Test your code by calling the method, then calling "moveOn" repeatedly to see how it handles in different situations

7) Once finished, please continue with what is on the agenda. :)

Write a boolean method for the SmartVic class that checks the next slot for a CD. It should return false if there is no present slot, no next slot or the next slot is empty. Precondition : none


public boolean nextSlotFilled()
{

 

}

Write a boolean method, onLastSlot(), for the SmartVic class that checks to see if the next slot is the END. It should return false if there is no present slot or the next slot exists. It should only return true when the next slot is the END. Precondition : none

public boolean onLastSlot()
{

 

}