Do we have some placeholders in java for string as we have (?) in SQL prepared statement
You can use String.format
String st = "akkk %s la,ala %s ";
String result = String.format(st, "First Val", "Second Val");
Alternatively, you can use numeric positions
String st = "akkk %1$s la,ala %2$s ";
String result = String.format(st, "First Val", "Second Val");
you can look at this Class MessageFormat