I am not familiar with Java program. The java Path comparison and string able to accomplish the task listed below ?
Path a = Paths.get("C:/Folder/");
Path b = Paths.get("C:/Folder/abc/def/");
Will there have any method to do a comparison for both path and retrieve only the difference between both of the path. For example, if i compare the a
and b
, i can detect /abc/def/
is the main differences from both of the path and store it into new variable. I had try search some code online but unfortunately the example i got is determine the path similarity and return the result yes
or not
only