Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CommandLineExample{
- public static void main(String args[]){
- System.out.println("Your first argument is: "+args[0]);
- }
- }
- compile by > javac CommandLineExample.java
- run by > java CommandLineExample sonoo
- Output: Your first argument is: sonoo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement