Question: Note: already programmed the mystack class :) Your SymbolBalance class should take a single command line argument. This argument should be the name of Read

Note: already programmed the mystack class :)  Note: already programmed the mystack class :) Your SymbolBalance class should
take a single command line argument. This argument should be the name

Your SymbolBalance class should take a single command line argument. This argument should be the name of Read inthe file and deck to make sure that all (rs(rs[rs..and i./s are properly balanced. You do not need to handle single line comments (those that start with I/1, lteral characters (things in single quotes), or the diamond operatorto). There are a number of error cases: Make sure to ignore ch The file ends with one or more opening symbols missing their corresponding closing symbols. MEmd There is a closing symbol without an opening symbol. ava There is a mismatch between closing and opening symbols (for example: . Your program should output whether or not the symbols are all appropriately balanced. if they are not, indicate which error condition occurred and what symbol type caused the problem. You will need to write your own stack class for this. It should be generic (in this particular case you will be pushing Character objects on it, but it should be capable of handing any object reference). Call your stack class: MyStack,java You should use java uitl LinkedList as an you are only allowed to use its basic list operations, not the stack operations themselves that is, do not use LinikeduList's native push and pop methods, Your the following methods: instance variable in your MyStack class, but in the implementation of your stack mechods . public void push(AnyType) public AnyType pop() * public AnyType peek() . public boolean 1sEmpty) . public int size) Define this class in the provided empty MyStack java file public static final void main(String) args) f MacBook Air

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!