SystemInformation.getUserName

Overview | Methods | This Package | All Packages

SystemInformation.getUserName

Retrieves the user name for the current thread.

Syntax

public static final String getUserName()

Return Value

Returns a String object that represents the current user name.

Remarks

Use the getUserName method to obtain the name of the user currently logged on to the system.