Thursday, 24 April 2014

Get Login User name of Machine


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



                                                             Home

No comments:

Post a Comment