All,
In my project, I have different attachment types like image, audio file, Video file and PDF. I want to sort them based on the extension like .mp4 is video, .pdf is documented like that, How can we write in Java,
One method we can follow gets the extension and compare with extensions required, Is there any better way to do it.