I have a base url string and another string which should be appended to the base url to get the exact url to request. currently i am using string manipulation to achieve the result. The code i implemented is as follows
private String getUrl(String base, String className){
try{
if(!base.endsWith("/")){
base= base + "/";
}
base= base+ base;
return base;
}
Is there any inbuilt method to concat the two string directly?