Way to format strings with "?" parameters to full string in java? -


For example, I want to apply class with method

  public class logger {Public Zero Information (String Message, String [] Parameters) {}}   

If input is

  New logger () Info ("Info: param1? Is the ultimate 2?", New string [] {"a", "b"});   

should be output

  information: param1 is one, ultimate 2b   

what is the easiest way to do it apply the?

Can you use the method for a ? Instead of using , you can format C style % x , where x can be d (for Int), s (for string) etc.

In addition, you can see class method. It accepts all formatting flags for formatting (uses formatter to format String.format () method

).

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -