instructions complete java class innout java specifically flesh out th
Complete Java class InNOut.java. Specifically, flesh out the following methods:
InNout.pop: Remove and return an item from the beginning of the underlying
array. If there are no items to remove, return null. Remaining items are shifted
to the front of the array, and emptying places at the back of the array are filled
with nulls. The method returns the string at beginning of array or null if the array
InNout.peek: Take a look at the value of the item in the front of the array,
without removing it. If they array is empty, return null. The method returns the
string at beginning of array or null if the array is empty.
InNout.append: Add a string after the last (most recently added) item in the
array. The method returns true if addition was successful, false otherwise.
Please do not change the test code in Java class Main.java. Also, please do not change the headers
of the methods in class InNOut.java. If your code works as expected, Main.main will show successful
completion of four tests.
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.