If you have to pass some arguments to launch your application you can use this syntax
java NameOfYourApplication arg1 arg2 arg3 ...
You may acces those arguments within your main method (public static void main (
String args[])
where args represents the arguments the user have entered
So you may do something like that
if (args[0]==...)
I hope it helps!