Example

public static void main( String[] args ) {
System.out.println( max( args ) );
}

private static final int max( String[] args ) {
int iMax = 0;
for ( int i = 0; i < args.length; i++ ) {
try {
iMax = Math.max( iMax, Integer.parseInt( args[ i ] ) );
} catch ( NumberFormatException e ) {}
finally {
if ( iMax > 10 ) {
return 10;
}
}
}
return iMax;
}

Solution
Place return outside of the finally clause.

public static void main( String[] args ) {
System.out.println( max( args ) );
}

private static final int max( String[] args ) {
int iMax = 0;
for ( int i = 0; i < args.length; i++ ) {
try {
iMax = Math.max( iMax, Integer.parseInt( args[ i ] ) );
} catch ( NumberFormatException e ) {}
}

if ( iMax > 10 ) {
return 10;
}

return iMax;
}