How to get only audio and video name without the .mp3 and .mp4 extention in android studio : I have audio and video names like this :

    azan1(1).mp3 and Funny.mp4
So I need an only AudioName as azan and VideoName as Funny. Need to replace .mp3 and .mp4 from the string how can I achieve this in code.??