Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get file from url

//passing url to URL class  
URL url = new URL("https://www.javatpoint.com/java-threadpoolexecutor");  
System.out.println("Url: "+ url);  
// Fetching file name   
File file = url.getFile();
System.out.println("File name in given url is : " + file);  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #java #file #url
ADD COMMENT
Topic
Name
9+4 =