- 1). Use your Java coding tool to open your Java application.
- 2). Locate the place in your code that contains the function whose arguments you want to check.
- 3). Type inside the function on the first line, "if(exists(fn_name($arg1))){ condition_one} else { condition_two}". In this example code, "fn_name" is the name of the function you are checking, "$arg1" is the argument you are checking, "condition_one" is what you want the code to do if the argument exists and "condition_two" is what you want the code to do if the argument does not exist.
SHARE