EL ERROR
sale el siguiente Mensaje..
hubo un error : java.sqlexception: no data found
P.D. si le borro esa linea no sale el mensaje.. He verificado la tabla y si hay datos.
Cita:
total = resultado.getInt("precio")+ resultado.getInt("vendido") ;
System.out.println ("\t"+total);