Weird thing with try-catch
Hey everyone, I have a problem compiling this .java
import java.io.*;
publicclass lector
{
publicstaticvoid main (String args[])
{
}
publicvoid lector()
{
listapersonas listap =new listapersonas();
listaconocidos listac =new listaconocidos();
String linea, per, con;
persona nuevapersona,actual,nuevoconocido;
BufferedReader texto =new BufferedReader(new FileReader("conocidos.txt"));
linea="";
try{
while ((linea=texto.readLine())!=null)
{
per = linea.substring(0,linea.indexOf(','));
con = linea.substring(linea.indexOf(','));
nuevapersona =new persona(per);
nuevoconocido =new persona(con);
if (listap.existe(per)==false)
{
nuevapersona.conocidos.agregar(nuevoconocido);
listap.agregar(nuevapersona);
linea=texto.readLine();
continue;
}
if (listap.existe(per)==true)
{
if (listac.existe(con)==false)
{
listac.agregar(nuevoconocido);
}
else
{
linea=texto.readLine();
continue;
}
}
else
{
linea=texto.readLine();
continue;
}
}//while
}//try
catch (java.io.* e)
{
System.out.print("Imposible leer el archivo");
}//catch
}//lector
}// class
Well what it is supposed to do is read a string from a file and then transform and add them to a linked list.
The problem is that when I compile there is an error message called "<identifier> expected" and points to the catch block. Please help me

