Is it possible to change directory by using File object?
No, You cannot change the directory by using a file object. Instances of the File class are immutable; that is, once created, the abstract pathname represented by a File object will never change. However, you can use one File object to find the directory you want, and then create another File object for the directory you want to go to.
Related Questions
- Why do I get the error message "ERROR while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory" when I try to start Gridgen on my OpenSuse machine?
- When running some applications there are errors similar to "libXm.so.2: cannot open shared object file: No such file or directory". Whats wrong?
- Is it possible for my microSD card to be displayed in the same directory as my other files in the file view?