Java Formatter Usage format(String format, Object... args)

Here you can find the source of format(String format, Object... args)

Description

format

License

Open Source License

Declaration

public static String format(String format, Object... args) 

Method Source Code

//package com.java2s;

import java.util.Formatter;

public class Main {
    public static String format(String format, Object... args) {
        return format(null, format, args);
    }//from  w  w  w .j  a va2s . co  m

    public static String format(StringBuilder builder, String format,
            Object... args) {
        if (builder == null) {
            builder = new StringBuilder();
        }
        new Formatter(builder).format(format, args);
        return builder.toString();
    }
}

Related

  1. escapeUnicode(String input)
  2. floatForSql(Float f)
  3. Fmt(String format, Object... args)
  4. format(double value)
  5. format(Locale l, String format, Object... args)
  6. format_hh_mm_ss_Optional(final long value)
  7. format_mm_ss(final long time)
  8. formatLong(long number, int length)
  9. formatMessageException(String format, Object... args)