System.out.println(); System.out.println(); System.out.println("These schemas contain tables/views that user '" + user + "' can see:"); System.out.println(); iter = DBAnalyzer.getPopulatedSchemas(meta).iterator(); while (iter.hasNext()) { System.out.print(iter.next() + " "); }
    private static void dumpNoTablesMessage(String schema, String user, DatabaseMetaData meta) throws SQLException {        System.out.println();        System.out.println();        System.out.println("No tables or views were found in schema " + schema + ".");        List schemas = getSchemas(meta);        if (schemas.contains(schema)) {            System.out.println("The schema exists in the database, but the user you specified (" + user + ")");            System.out.println("  might not have rights to read its contents.");        } else {            System.out.println("The schema does not exist in the database.");            System.out.println("Make sure you specify a valid schema with the -s option and that the user");            System.out.println("  specified (" + user + ") can read from the schema.");            System.out.println("Note that schema names are usually case sensitive.");        }        System.out.println();        System.out.println(schemas.size() + " schemas exist in this database (some are system schemas):");        System.out.println();        Iterator iter = schemas.iterator();        while (iter.hasNext()) {            System.out.print(iter.next() + " ");        }    }