Class User

java.lang.Object
com.ferrumx.system.currentuser.User

public class User extends Object
Retrieves the User Information of the Account logged in to the system
  • Method Details

    • getUsername

      public static String getUsername()
      Fetches the user-name of the account currently logged in
      Returns:
      the user-name in String format
    • getHome

      public static String getHome()
      Fetches the User directory in the form: "C:/Users/User-Name
      Returns:
      the User directory in String format
    • getDirectory

      public static String getDirectory()
      Fetches the current working directory.
      Returns:
      the current working directory in String format