My question is this, is it possible to search for files with the same name or similar within an ArrayList? For example: I have an arraylist loaded with 5 mp3 files (in this case they are music files) but it is applicable to any type of existing files)
-
Ricky Martin ft Maluma - Vente Pa Ca.
-
Román El Original ft. RC - I want to dance with you.
-
I'm Going Party - Sensato Ft. Pitbull.
-
I'm Going Party - Sensato Ft. Pitbull Dj Asus ft Dj Alonso.
-
Blackmail - Shakira ft Maluma.
What I want to do is perform a search of a specific directory (which I already do) and load all the file names in an arraylist and then compare if they are repeated or similar, in this case within the array those that they are repeated are:
-
I'm Going Party - Sensato Ft. Pitbull.
-
I'm Going Party - Sensato Ft. Pitbull Dj Asus ft Dj Alonso.
While the names are not exactly identical, what I want is that regardless of the similarities or differences that exist in the system can identify those files as the same name, is it possible to do something like that in java? Any element or tool that has the language to perform the search.
I would appreciate your help, thank you very much.