I know there is a function string.Format() in .NET
Is there an equivalent version available in Java?
I know there is a function string.Format() in .NET
Is there an equivalent version available in Java?
On
Try this:
String format = "Test: {0}, {1}"
System.out.println(MessageFormat.format(format, "Text1", "Text2"))
see this question and answers
Perhaps not exactly equal but Java does have String.format which provides very similar functionality. You'll find that Java and C# are very similar.