I have the below property code in my java class
certificateDerFile = System.getProperty("catalina.base")
+ "//logs//Cert_patch.der";
Now my query is that in the path "//logs//Cert_patch.der", it should be refactored such // slashes should not be there should be some file separator which should work both in windows and Linux, please advise how to achieve the same.