Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

java command line arguments

class CommandLineExample{  
public static void main(String args[]){  
System.out.println("Your first argument is: "+args[0]);  
}  
}

//Now follow these steps
compile by > javac CommandLineExample.java  
run by > java CommandLineExample sonoo  
 
PREVIOUS NEXT
Tagged: #java #command #line #arguments
ADD COMMENT
Topic
Name
5+5 =