| Package | Description | 
|---|---|
| java.util | Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array). | 
| Modifier and Type | Method and Description | 
|---|---|
| Formatter | Formatter. format(Locale l,
      String format,
      Object... args)Writes a formatted string to this object's destination using the
 specified locale, format string, and arguments. | 
| Formatter | Formatter. format(String format,
      Object... args)Writes a formatted string to this object's destination using the
 specified format string and arguments. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Formattable. formatTo(Formatter formatter,
        int flags,
        int width,
        int precision)Formats the object using the provided  formatter. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.