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?
 
    
     
    
    Yes, there is also String.format() which supports output ala C printf() since Java 1.5.
String.format(String format, Object... args) 
System.out.format() // alternativ
System.out.printf() // alternativ
 
    
     
    
    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.
