Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

if(args.length != 2) System.exit(0)

  Asked By: Jeff    Date: Feb 08    Category: Java    Views: 1859
  

Well, I need again, an explication for each of the following
if(args.length != 2)
System.exit(0)

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Kristen Chavez     Answered On: Feb 08

this code fragment tests the number of arguments in a console
application programs , I mean the arguments in your main method, and
if it is not equals 2, couses the program , ends up.

 
Didn't find what you were looking for? Find more on if(args.length != 2) System.exit(0) Or get search suggestion and latest updates.




Tagged: