I was wondering, how can I find the final destination of a file?
For example, if I write this path:
What you want is the canonical path, which is unique for every single file. You basically just need to create a File object and run the getCanonicalPath() method to get what you want.
File f = new File(yourPath); System.out.println(f.getCanonicalPath());
...checking for exceptions, yada yada.