publicstaticvoid main( String[] args ) { for ( int i = 0; i < args.length; i++ ) { try {
Integer.parseInt( args[ i ] );
} catch ( NumberFormatException e ) {
e.printStackTrace();
}
}
}
Rozwiązanie
Usuń metodę Throwable.printStackTrace(). Użyj środowiska rejestrowania.
publicstaticvoid main( String[] args ) { for ( int i = 0; i < args.length; i++ ) { try {
Integer.parseInt( args[ i ] );
} catch ( NumberFormatException e ) { // DO WYKONANIA: Rejestrowanie przy użyciu środowiska rejestrowania
}
}
}