FileDocCategorySizeDatePackage
UserNameTest.javaAPI DocExample170Tue Dec 12 18:57:44 GMT 2000None

UserNameTest.java

public class UserNameTest {
    public static void main(String[] args) {
        String name = System.getProperty("user.name");
        System.out.println(name);
    }
}