new File(URI uri) : File « java.io « Java by API
- Java by API
- java.io
- File
new File(URI uri)
import java.io.File;
import java.net.URI;
public class Main {
public static void main(String[] a) throws Exception {
File remoteFile = new File(new URI("file:///index.htm"));
}
}
Related examples in the same category