Question: Program #3 Create a private inner class BaseNumber. The inner class has the following methods: default constructor, overloaded constructor, getNumber, getBase, setNumber, setBase. [Make your
Program #3
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 Show the LinkedtStackADT interface Create a LinkedStackDS with the following methods: default constructor, overloaded constructor, copy constructor, isEmptyStack, push, peek, pop Create a private inner StackNode class with the following methods: default constructor, overloaded constructor, toString Exception classes: StackException, StackUnderflowException, StackOverflowException Create a PalindromeDemo class that instantiates a LinkedStackDS object. Execute a do - while loop that asks the user using dialog boxes to "Input a String for Palindrome Test: " Use the replaceAll method to remove all blanks and special characters from testStr. Output whether or not it is a palindrome in a dialog box. [Use the 5 inputs given on the other handout sheet for testing.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
