Program 2 in JAVA please! -Show the ListStackADT interface -Create a ListStackDataStrucClass with thefollowing methods: default constructor, overloaded constructor, copy constructor, getTop, setTop, isEmpty, ifEmpty (if empty throw the exception), push, peek, pop, toString. -Create a private inner class of ListStack called StackNode with the following methods: default constructor, overloaded constructor, copy constructor, getValue, getNext, setValue, setNext -Create a BaseConverter class (non-generic) with the following methods: default constructor, inputPrompt, convert [converts a BaseNumber to a converted String], convertAll [instantiate a String object] , toString, processAndPrint -Create a private inner class BaseNumber. The inner class has the following methods: default constructor, overloaded constructor, getNumber, getBase, setNumber, setBase. [Make your private instance variables in the inner class Long type]. -Create a BaseConverterDemo class that only has 2 statements: Create a BaseConverter object and then have it invoke processAndPrint. -Exception classes: StackException, EmptyStackException, FullStackException.
Program 2 in JAVA please! -Show the ListStackADT interface -Create a ListStackDataStrucClass with thefollowing methods: default constructor, overloaded constructor, copy constructor, getTop, setTop, isEmpty, ifEmpty (if empty throw the exception), push, peek, pop, toString. -Create a private inner class of ListStack called StackNode with the following methods: default constructor, overloaded constructor, copy constructor, getValue, getNext, setValue, setNext -Create a BaseConverter class (non-generic) with the following methods: default constructor, inputPrompt, convert [converts a BaseNumber to a converted String], convertAll [instantiate a String object] , toString, processAndPrint -Create a private inner class BaseNumber. The inner class has the following methods: default constructor, overloaded constructor, getNumber, getBase, setNumber, setBase. [Make your private instance variables in the inner class Long type]. -Create a BaseConverterDemo class that only has 2 statements: Create a BaseConverter object and then have it invoke processAndPrint. -Exception classes: StackException, EmptyStackException, FullStackException.