public class MainUtil
extends java.lang.Object
Constructor and Description |
---|
MainUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getArg(java.lang.String[] args,
int i)
Return the argument specified by index or null if argument
- doesn't exist
- is null
- is empty string
- is string "null" ignoring case
|
static java.lang.String |
getArg(java.lang.String[] args,
int i,
java.lang.String defaultValue)
Return the argument specified by index or default value if argument
- doesn't exist
- is null
- is empty string
- is string "null" ignoring case
|
public static java.lang.String getArg(java.lang.String[] args, int i)
args
- the arguments to evaluatei
- the index of the argument to getpublic static java.lang.String getArg(java.lang.String[] args, int i, java.lang.String defaultValue)
args
- the arguments to evaluatei
- the index of the argument to getdefaultValue
- the value to return if argument has not been passedCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de