Level 1 & 2 More Programs
This commit is contained in:
7
CommandLineInput.java
Normal file
7
CommandLineInput.java
Normal file
@@ -0,0 +1,7 @@
|
||||
// Write a program in java to demonstrate input from keyboard using Comand Line Argument.
|
||||
|
||||
class CommandLineInput{
|
||||
public static void main(String args[]) {
|
||||
System.out.println("Your first argument is: "+args[0]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user