Esempio

public static void main( String[] args ) {
int value = 0;
try {
value = Integer.parseInt( args[ 0 ] );
} catch ( NumberFormatException e0 ) {
try {
value = Integer.parseInt( args[ 1 ] );
} catch ( NumberFormatException e1 ) {
try {
value = Integer.parseInt( args[ 2 ] );
} catch ( NumberFormatException e2 ) {

}
}
}
}

Soluzione
Utilizzare Strategy Design Pattern.
  1. Creare un'interfaccia per eseguire l'attività.
  2. Far sì che il metodo che esegue l'attività un'eccezione.
  3. Inserire la classe con il blocco nidificato try/catch in un contenitore di strategie.
  4. Modificare il blocco nidificato try/catch in un loop for
  5. Quando si verifica un eccezione nel loop, applicare le strategie.

public static void main( String[] args ) {
int value = 0;
for ( int i = 0; i < args.length; i++ ) {
try {
value = Integer.parseInt( args[ i ] );
break ;
} catch ( NumberFormatException e ) {
// Ignora eccezione
}
}

}