Share via


Console.Format(String, Object[]) Method

Definition

Writes a formatted string to this console's output stream using the specified format string and arguments.

[Android.Runtime.Register("format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/Console;", "")]
public Java.IO.Console? Format (string? fmt, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/Console;", "")>]
member this.Format : string * Java.Lang.Object[] -> Java.IO.Console

Parameters

fmt
String

A format string as described in <a href="../util/Formatter.html#syntax">Format string syntax</a>

args
Object[]

Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by <cite>The Java&trade; Virtual Machine Specification</cite>. The behaviour on a null argument depends on the <a href="../util/Formatter.html#syntax">conversion</a>.

Returns

This console

Attributes

Remarks

Java documentation for java.io.Console.format(java.lang.String, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to