code: public static boolean tableExists(Connection connection, String tableName) throws SQLException {
          try (Statement statement = connection.createStatement()) {
              statement.execute("SELECT * FROM " + TableLocation.parse(tableName) + " LIMIT 0;");
              return true;
          } catch (SQLException ex) {
              return false;
          }
      }
docs: Return true if the table exists.
  
  @param connection Connection
  @param tableName  Table name
  @return true if the table exists
  @throws java.sql.SQLException