Duda con un error
Publicado por kiki (3 intervenciones) el 18/05/2008 07:27:47
buenas.. pes necesito su ayuda con respecto a un error q me da, soy nueva programando..
tengo este codigo
public void AlmaDatos_Part () throws IOException //Metodo Almacenar Los Datos de Los 1500
{
//Declaracion de Variables Locales
int i=1;
char resp;
String linea;
while ((i<=1500)&&(P[i].placa!=""))
{
i=i+1;
}//Fin Mientras
do
{
P[i].Datos_V_Part();
i=i+1;
System.out.print (" - ¿Desea Agregar Otro Camion? S/N : ");
linea = teclado.readLine(); resp = linea.charAt(0); //Lectura dl Caractr
}while ((resp!='N')||(resp!='n'));//Fin Repetir
}//Fin Metodo
unreported exception java.lang.Exception; must be caught or declared to be thrown
P[i].Datos_V_Part();
^
tengo este codigo
public void AlmaDatos_Part () throws IOException //Metodo Almacenar Los Datos de Los 1500
{
//Declaracion de Variables Locales
int i=1;
char resp;
String linea;
while ((i<=1500)&&(P[i].placa!=""))
{
i=i+1;
}//Fin Mientras
do
{
P[i].Datos_V_Part();
i=i+1;
System.out.print (" - ¿Desea Agregar Otro Camion? S/N : ");
linea = teclado.readLine(); resp = linea.charAt(0); //Lectura dl Caractr
}while ((resp!='N')||(resp!='n'));//Fin Repetir
}//Fin Metodo
unreported exception java.lang.Exception; must be caught or declared to be thrown
P[i].Datos_V_Part();
^
Valora esta pregunta


0