Monday, 28 May 2012

Program in java to get machine user name


import java.util.*;
import java.lang.*;
import java.net.*;
class GetMachine
{


public static void main(String args[])

{
String s1=System.getProperty("user.name");
         System.out.println("Current user is "+s1);
}

}


No comments:

Post a Comment