Suppose I am having two Strings as follows :
String name = "EXAMPLE_MODEL_1";
String actionName = "ListModels";
I want resulting string as Follows :
String result = "ExampleModel1ListModels";
I tried the Follwoing code :
String result = name.toLowerCase().replaceAll("_", "");
result = result.concat(actioName);
And I am getting the result value as "examplemodel1ListModels". But the exepected one is "ExampleModel1ListModels".