Código
private void ArraysList() {
// throw new UnsupportedOperationException("Not yet implemented");
Connection cn = this.getConexion();
Statement stm = null;
int res=0;
try{
// ArraysList Alumno = new ArraysList;
String orden ="select from alumnos;";
stm = cn.createStatement();
res = stm.executeUpdate(orden);
}
catch(Exception e){
System.out.println("Error Visualizacion");
e.printStackTrace();
}finally{
try{
if (stm !=null){ stm.close();}
if (cn !=null){ cn.close();}
}catch(SQLException e){
System.out.println("Error en Cierre");
e.printStackTrace();
}finally{
}
}
espero me hallan comprendido










Autor


En línea

