• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question regarding main method parameter  RSS feed

 
Charles Sexton
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me exactly what this (String[] args) can be used for during designs

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by desings? Do you mean while designing and architecting your application?

Where do you see is the String[] args defined? If you say that it is the parameter to the method main, then what can you do with the parameter that you pass to a method?
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go to the Java® Tutorials and try ctrl‑f‑“command” and you get several hits: 1 2 3. One of those links should answer your question.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!