While I was working on my project I received a requirement: I need to get the system user documents folder (like “My Documents” for Windows and “Documents” for Linux and Mac OS X). I need to get it for all the operating systems. How can I do this?
I can get the user root directory by using System.getProperty("user.home")
. I need a solution for this requirement using Java.