Program to check system properties in java

import java.lang.System;
import java.util.Properties;

public class SystemApp {
 public static void main(String args[]) {
  long time = System.currentTimeMillis();
  System.out.print("Milliseconds elapsed since January 1, 1970: ");
  System.out.println(time);
  Properties p=System.getProperties();
  p.list(System.out);
  System.exit(13);
 }
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|