Sometimes we run java programs in command prompt in this manner
java -jar myjarfile.jar -a "testing" -b "testing2"
How do i know which parameter belongs to which.
My code does not work
String context = System.getProperty("-a")
System.out.println(context) //returns null