public String ShowTable(String TableName) {
        String showtableOutput = null;
        try {
            /*
            The connection specifies create=true to cause
            the database to be created. To remove the database,
            remove the directory AttackDB and its contents.
            The directory AttackDB will be created under
            the directory that the system property
            derby.system.home points to, or the current
            directory if derby.system.home is not set.
             */
            if ((conn = setConn()) != null) {
                System.out.println("Connected to database " + getDatabaseName());
            } else {
                throw new Exception("Not connected to database " + getDatabaseName());
            }

            conn.setAutoCommit(false);

            /*
            Creating a statement lets us issue commands against
            the connection.
             */
            PreparedStatement ps = conn.prepareStatement("SELECT * FROM " + TableName);
//        ps.setString(1, TableName);

            /*
            We select the rows and verify the results.
             */
            ResultSet rs = ps.executeQuery();

            String Line = "";
            for (int i = 1; i < rs.getMetaData().getColumnCount() + 1; i++) {
                Line = Line + "   " + rs.getMetaData().getColumnName(i);
            }

            showtableOutput = Line;
            while (rs.next()) {
                Line = "";
                for (int i = 1; i < rs.getMetaData().getColumnCount() + 1; i++) {
                    Line = Line + "   " + rs.getString(i);
                }

                showtableOutput = showtableOutput + LS + Line;
                System.out.println(Line);
            }

            rs.close();
            ps.close();
            conn.commit();
            conn.close();

        } catch (Throwable e) {
            System.out.println("exception thrown:");

            if (e instanceof SQLException) {
                printSQLError((SQLException) e);
            } else {
                e.printStackTrace();
            }
        }
        return showtableOutput;

    }