Can someone explain the (String [] args) of the main method.
shelexelex
0
Light Poster
Recommended Answers
Jump to PostIt allows the program to take arguments from the command line. Not used very often, but it allows you to do something like
public class DoStuffToStrings{ public static void main(String[] args) { for (String s:args) { //do stuff to the strings } } }
You can call …
All 4 Replies
apines
116
Practically a Master Poster
Featured Poster
jon.kiparsky
326
Posting Virtuoso
Overbooked
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.