import java.io.File;
import java.io.IOException;

public class ReportExample {

    public static void main(String[] args) throws IOException {

        // When the network drive "Z:" is mounted,
        // and "a.txt" exists on that drive,
        // create a File instance pointing to it.
        java.io.File file = new File("Z:\\test.zip");

        // Use the target method to retrieve the path.
        String path = file.getCanonicalPath();

        // Print the result.
        System.out.println("Retrived path: " + path);

        // Java 24 (if a.txt exists): \\192.168.1.3\share-directory\a.txt
        // Java 24 (if a.txt does NOT exist): Z:\a.txt
        // Java 23: Z:\a.txt
    }
} 