Wednesday, June 24, 2009

How to Get and Set the Value of a System Property


// Get a system property
String dir = System.getProperty("SampleProperty");

// Set a system property
String previousValue = System.setProperty("SampleProperty", "newValue");

0 comments:

 

Sample Java Codes Copyright © 2008 Green Scrapbook Diary Designed by SimplyWP | Made free by Scrapbooking Software | Bloggerized by Ipiet Notez