public class SystemExample {
public static void main(String[] args) {
String value = System.getProperty("user.name");
System.out.println(value);
}
}
Gets the logged in user name using java
* * * * * 1 votes
Tags: java.lang
Java source code examplesJava source code samples. Java code examples. |
|
public class SystemExample {
public static void main(String[] args) {
String value = System.getProperty("user.name");
System.out.println(value);
}
}
Tags: java.lang