Exercises 1
Use the java.lang.System class to obtain various system properties. Add these to a Vector, and use Vector’s Enumeration to iterate through the various Vector positions printing the information contained. You could look for :
-
- java.version, java.vendor, java.home
- java.class.path, os.name, os.version
- user.name, user.home, user.dir
-