ch3-Show System Properties
Chapter_3 Exercise_3-10 | Exercise_3-11 |
ShowProperties.java TIJ, p. 54
public class ShowProperties
{
public static void main(String[] args)
{
System.getProperties().list(System.out);
System.out.println();
System.out.println(System.getProperty("user.name"));
System.out.println(System.getProperty("java.library.path"));
}
}
/*
javac ShowProperties.java
java ShowProperties
*/
Note: Compare to Show_Properties on the blog Thinking_in_C#, Chapter_3.
Chapter_3 Exercise_3-10 | BACK_TO_TOP | Exercise_3-11 |
Comments
Post a Comment