Update to answering and compiling

Things needed to be done:
- Dynamic generation of table and cmdOutput array based on test cases
- Creation of testArray with test cases and return values from DB not
static.
- Java file may not work for something with more or less than 2 params
needs to be fixed