Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class CommandLineExample{
  2. public static void main(String args[]){
  3. System.out.println("Your first argument is: "+args[0]);
  4. }
  5. }
  6.  
  7. compile by > javac CommandLineExample.java
  8. run by > java CommandLineExample sonoo
  9.  
  10. Output: Your first argument is: sonoo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement