Check out example codes for "java user home directory macos". It will help you in understanding the concepts better.

Code Example 1

String homeDir = System.getProperty("user.home");

Learn ReactJs, React Native from akashmittal.com