java -D<name>=<value> .....
The getProperty(
Sample Java Code
public class Properties {
public static void main(String[] args) {
String name = System.getProperty("name");
System.out.println("name is " name);
String address = System.getProperty("address");
System.out.println("address is " +address);
String age = System.getProperty("age");
System.out.println("age is " +age);
}
}
No comments:
Post a Comment