Value.format

Overview | Methods | This Package | All Packages

Value.format

Formats a value using a format string.

Syntax

public static String format( double value, String format )

public static String format( int value, String format )

public static String format( Object value, String format )

public static String format( double value, String format )

Parameters

value

The value to format.

format

The user-defined format string or name of a predefined format.

Return Value

Returns a string containing the formatted value.