Académique Documents
Professionnel Documents
Culture Documents
package com.poi;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Iván Salas
* <http://programandoointentandolo.com>
*/
public class EjemploProcAlmacenado {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
BufferedReader entrada = new BufferedReader(new InputStreamReader(System.in));
int id = -1;
Connection cn = null;
try {
do {
System.out.println("\nIntroduce el ID del alumno:");
try {
id = Integer.parseInt(entrada.readLine());
} catch (IOException ex) {
System.out.println("Error...");
}