Hi,
Is there somehow I could use the getopt() feature that C language has for doing command line argument processing in Java.I mean using flags and all that stuff for my argumens. Example syntax in Student Database Program:-
java myClassName -c Insert -s John -i 7635425 -b CS
-l {Java|C|C++|nothing} -a []
Flags Explanation:-
'c' may have the following options:-Insert, Delete, Update,Search 's' Student name(compulsory)
'i' Student id(compulsory)
'b' Stuent Major(compulsory)
'l' Student Computer Language Proficiency(choice)
'a' Student Achievements(optional)
Note:-
Now the command line arguments may be posted in any order,and my program should work correctly.Please do provide any suggestions on how this can be done in Java.
Thanking you,
Ashwin