Pin It

How to use Command Line Arguments in Java ?.

Program to demonstrate how to use Command Line Arguments in Java.
 





Click here to download complete source code 
public class CommandLineArguments {

 public static void main(String[] args) {
  
  System.out.print(args[0] + " ");
  
  System.out.print(args[1]);
  

 }

}



Click here to download complete source code

Output of the program :

hello world


Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Related Posts Plugin for WordPress, Blogger...

Post your related queries below ...

comments powered by Disqus
Powered by Blogger.
 
© 2012 Learn Java by Examples Template by Hubber Spot