Click here to watch in Youtube :
https://www.youtube.com/watch?v=QLcKjdm0Umc&list=UUhwKlOVR041tngjerWxVccw
PropertiesDemo.java
https://sites.google.com/site/ramj2eev1/home/javabasics/System_getProperty_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/System_getProperty_App
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/fecc858ed896ce9bbf3cb92f5d438fc2de9eee22/BasicJava/System_getProperty_App/?at=master
See also:
All JavaEE Viedos Playlist
All JavaEE Viedos
All JAVA EE Links
Servlets Tutorial
All Design Patterns Links
JDBC Tutorial
Java Collection Framework Tutorial
JAVA Tutorial
Kids Tutorial
https://www.youtube.com/watch?v=QLcKjdm0Umc&list=UUhwKlOVR041tngjerWxVccw
PropertiesDemo.java
/* * public static String getProperty(String key) * * Parameters: * ---------- * * key - the name of the system property. */ public class PropertiesDemo { public static void main(String[] args) { /* * Gets the system property indicated by the * specified key. */ String value = System.getProperty("os.name"); System.out.println("value = " + value); String value1 = System.getProperty("a.b"); System.out.println("value1 = " + value1); } }Output
value = Windows 7 value1 = nullClick the below link to download the code:
https://sites.google.com/site/ramj2eev1/home/javabasics/System_getProperty_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/System_getProperty_App
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/fecc858ed896ce9bbf3cb92f5d438fc2de9eee22/BasicJava/System_getProperty_App/?at=master
See also:
No comments:
Post a Comment