public void executeStatement(String statement) throws SQLException, NoConnectionException {
  if (connection != null) {
    Statement st=connection.createStatement();
    st.execute(statement);
  }
 else   throw new NoConnectionException();
}

public void executeStatement ( String statement ) throws SQLException , NoConnectionException { if ( connection != null ) { Statement st = connection . createStatement ( ) ; st . execute ( statement ) ; } else throw new NoConnectionException ( ) ; }
executes an sql statement
