/*****************************************************************/ /* Copyright 2013 Code Strategies */ /* This code may be freely used and distributed in any project. */ /* However, please do not remove this credit if you publish this */ /* code in paper or electronic form, such as on a web site. */ /*****************************************************************/ package test; import org.apache.commons.lang.SystemUtils; public class UserNameTest { public static void main(String args[]) throws Exception { System.out.print("User name from SystemUtils: "); System.out.println(SystemUtils.USER_NAME); } }