Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

three mode ?

 
long lingyu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The poject require three mode for starting server ,client and net client.
-java -jar Runme.jar server
I have a question: Do I need to provide a main class which handle the argument? And the main class should start server,client etc. I am confused.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12012
216
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Long,
Yes, you will have to have something in your main class that will check what mode the user wants to run your application. You will then start the requested mode.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic