So my quick question to everyone is, would anyone be able to explain to me the basic reason as to why should I parse a argument in the (String[]args)? I’m not very knowledgeable about this topic and would like to get some quick help so I could understand things better.
Thank you!
You’re asking why you would do it? Well, when there’s a need (or requirement) to do it ofcourse. If your application should, for example, support arguments like
-install,-debugor-foo -bar -quick -user=simpson -pass=bartSimilar to the way
lsin linux supports arguments like-Rfor recursive anddirfor “Dos” supports/Sfor recursive. You want to ‘parse’ these arguments (e.g. “take a look at them, figure out what they mean”) to make your application act accordingly.