codice:
  public static int readInt()
   {
      br = new BufferedReader(new InputStreamReader(System.in));
 
      try
      {
         _String = br.readLine();
         _int = Integer.parseInt(_String);
      }
      catch (IOException e1)
      {
         System.out.println ("errore di flusso");
      }
      catch (NumberFormatException e2)
      {
         System.out.println ("errore di input da tastiera");
         return(0);
      }
 
      return(_int);
   }