General Path To Downloads Folder [duplicate]
Check out this question. Use...
String home = System.getProperty("user.home");File file = new File(home+"/Downloads/" + fileName + ".txt");
Your own folder is accessible using the $HOME environment variable.
In Java, you can find you home folder using the user.home
system property. See Java system properties.
e.g.:
System.getProperty("user.home");