public class StackQueueDemo
extends java.lang.Object
Constructor and Description |
---|
StackQueueDemo()
Base controller.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
GetUserInput()
Acquire user input.
|
protected java.lang.String |
GetUserInput(java.lang.String promptString)
Prompt for and acquire user input.
|
protected void |
PrintHelp()
Prints help to user interface.
|
protected void |
ProcessString(java.lang.String lineString,
boolean printBool)
Processes string by parsing it through both queue and stack paren classes.
|
protected void |
ReadFile(java.lang.String fileString)
Reads file in line by line.
|
public StackQueueDemo() throws java.io.IOException
java.io.IOException
protected void PrintHelp()
protected java.lang.String GetUserInput()
protected java.lang.String GetUserInput(java.lang.String promptString)
promptString
- String to show user.protected void ReadFile(java.lang.String fileString)
fileString
- String to file location.protected void ProcessString(java.lang.String lineString, boolean printBool)
lineString
- String to parse for parenthesis.printBool
- Indicates if string should be printed for user display.