Returns user home folder. - Java Native OS

Java examples for Native OS:Environment

Description

Returns user home folder.

Demo Code

// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved.
//package com.java2s;

public class Main {
    public static final String USER_HOME = "user.home";

    /**/*www.  jav a2  s.  c o m*/
     * Returns user home folder.
     */
    public static String getUserHome() {
        return System.getProperty(USER_HOME);
    }
}

Related Tutorials