I think you can just use the creator of the file.
public static String combine (String path1, String path2)
{
File file1 = new File(path1);
File file2 = new File(file1, path2);
return file2.getPath();
}
Like this
© 2024 OneMinuteCode. All rights reserved.