I have a python program that can remove strings from files name but I am looking for help using java.
something similar to this
import glob,os
from tkinter import filedialog
import re
#in_path = filedialog.askdirectory() # if want to ask for directory
os.chdir(os.path.join("G:\\"))  #change to os.chdir(os.path.join(in_path)) to used selected dir
for files in glob.glob("*.mp4"):  #get mp4 files
    filename = os.path.splitext(files)
    ext=filename[-1]
    thefile = filename[0]
    if "v" in thefile:  #if there is version, check where the letter "v" is
        ind = thefile.index("v")
        change = thefile[:ind].replace(".","").replace("_","")+thefile [ind:].replace("_","")+ext
    else:
        change = thefile.replace(".","")+ext
    os.rename(files,change)
 
    