Programming Examples
Java program to print file name and extension of file from given url
Write a program to assign a full path and file name as given below. Using library functions, extract and output the file path, file name and file extension separately as shown.
Input C:\Users\admin\Pictures\flower.jpg Output Path: C:\Users\admin\Pictures\
File name: flower
Extension: jpg
Output