SystemInformation.getComputerName

Overview | Methods | This Package | All Packages

SystemInformation.getComputerName

Retrieves the computer name of the current system.

Syntax

public static final String getComputerName()

Return Value

Returns a String object representing the name of the computer.

Remarks

Use the getComputerName method to determine the name of the computer as it is displayed to other users on a network. This name is established at system startup when it is initialized from the registry.