Welcome aboard! We are happy you are here and wish you good net-raft!
package myproject;
import java.util.Map;
class Main
{
public static void main(String args[]) throws Exception
{
Map<String, String> env = System.getenv();
if (env.containsKey("USERDOMAIN"))
System.out.println(env.get("USERDOMAIN"));
else
System.out.println("Unknown Computer");
}
}
The most helpful JAVA solutions
how to get the minimum value from array using java ?JAVA Click to see more ... 794 49