What is the equivalent Java implementation for string.format?
string s = string.Format("{0} - ({1})", myparam1, myparam2);
String formatted = String.format("%s - (%s)", myparam1, myparam2);
Err... String.format seems like a pretty good candidate. Who would have thought? :-)
There is also MessageFormat.format.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With