salve potreste aiutarmi cn questo codice... non riesco a capire perkè mi da errore su "exception"
-l'errore lo metto in rosso-
codice:
class ServeOneClient extends Thread
{
public ServeOneClient(Socket s)
throws IOException
{
socket = s;
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);
start();
}
public void run()
{
try
{
String str = in.readLine();
int n = Integer.parseInt(str);
float saldo = ContiCorrentiBancari.saldo(n);
out.println(saldo);
}
catch(IOException exc)
{
System.out.println("IO Exception occurred");
break MISSING_BLOCK_LABEL_115;
}
catch(NumberFormatException exc)
{
out.println("ERR_FORMAT");
break MISSING_BLOCK_LABEL_115;
}
catch(NullPointerException exc)
{
out.println("ERR_NOTFOUND");
break MISSING_BLOCK_LABEL_115;
}
break MISSING_BLOCK_LABEL_92;
Exception exception;
exception;
try
{
socket.close();
}
catch(IOException e)
{
System.out.println("Socket not closed!");
}
throw exception;
try
{
socket.close();
}
catch(IOException e)
{
System.out.println("Socket not closed!");
}
break MISSING_BLOCK_LABEL_135;
try
{
socket.close();
}
catch(IOException e)
{
System.out.println("Socket not closed!");
}
}
eclipse mi dice:
codice:
Syntax error, insert "AssignmentOperator Expression" to complete Expression