protected String getValue(String arg) {
        String[] split = arg.split("=");
        if (split.length <= 1) {
            return null;
        }
        return split[1];
    }
protected String getValue ( String arg ) { String [ ] split = arg . split ( "=" ) ; if ( split . length <= 1 ) { return null ; } return split [ 1 ] ; }
Returns the value at i+1, guarding against ArrayOutOfBound exceptions.
If the next element is not a value but an argument flag (starts with -)
return null.

@return String value as defined above, or {@code null} if at end of args.