Get Name of User Currently Logged In to the Computer

This code example shows how to display the current user logged on to the computer.
There is a system property called ‘’ which holds the value of the current user. The property is obtained by calling the getProperty() method of the System class.

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?