I have a java file path
/opt/test/myfolder/myinsidefolder/myfile.jar
I want to replace the file path to
here root path will remain same but want to change file name from myfile.jar to Test.xml
/opt/test/myfolder/myinsidefolder/Test.xml
How can i do this in java any help?