public class UserName
{
public static void main(String args[])
{
String version=System.getProperty("user.name");
System.out.println("Currently logged in as "+version);
}
}
OUTPUT:
Currently logged in as K SARAVANAN
{
public static void main(String args[])
{
String version=System.getProperty("user.name");
System.out.println("Currently logged in as "+version);
}
}
OUTPUT:
Currently logged in as K SARAVANAN
No comments:
Post a Comment
Please post your comments. Your comments make us to write more programs for you.