Uses of Class
java.util.Formatter
Packages that useFormatter Package Description java.util Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.Uses ofFormatter injava.util
Methods injava.util that returnFormatter Modifier and Type Method Description FormatterFormatter. format(String format,Object... args)Writes a formatted string to this object's destination using the specified format string and arguments.FormatterFormatter. format(Locale l,String format,Object... args)Writes a formatted string to this object's destination using the specified locale, format string, and arguments.Methods injava.util with parameters of typeFormatter Modifier and Type Method Description voidFormattable. formatTo(Formatter formatter, int flags, int width, int precision)Formats the object using the providedformatter.