Udostępnij za pośrednictwem


PrintWriter.Print Method

Definition

Overloads

Print(Char[])

Prints an array of characters.

Print(Object)

Prints an object.

Print(Boolean)

Prints a boolean value.

Print(Char)

Prints a character.

Print(Double)

Prints a double-precision floating-point number.

Print(Int32)

Prints an integer.

Print(Int64)

Prints a long integer.

Print(Single)

Prints a floating-point number.

Print(String)

Prints a string.

Print(Char[])

Prints an array of characters.

[Android.Runtime.Register("print", "([C)V", "GetPrint_arrayCHandler")]
public virtual void Print (char[]? s);
[<Android.Runtime.Register("print", "([C)V", "GetPrint_arrayCHandler")>]
abstract member Print : char[] -> unit
override this.Print : char[] -> unit

Parameters

s
Char[]

The array of chars to be printed

Attributes

Remarks

Prints an array of characters. The characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(char[]).

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.

See also

Applies to

Print(Object)

Prints an object.

[Android.Runtime.Register("print", "(Ljava/lang/Object;)V", "GetPrint_Ljava_lang_Object_Handler")]
public virtual void Print (Java.Lang.Object? obj);
[<Android.Runtime.Register("print", "(Ljava/lang/Object;)V", "GetPrint_Ljava_lang_Object_Handler")>]
abstract member Print : Java.Lang.Object -> unit
override this.Print : Java.Lang.Object -> unit

Parameters

obj
Object

The Object to be printed

Attributes

Remarks

Prints an object. The string produced by the java.lang.String#valueOf(Object) method is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(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.

See also

Applies to

Print(Boolean)

Prints a boolean value.

[Android.Runtime.Register("print", "(Z)V", "GetPrint_ZHandler")]
public virtual void Print (bool b);
[<Android.Runtime.Register("print", "(Z)V", "GetPrint_ZHandler")>]
abstract member Print : bool -> unit
override this.Print : bool -> unit

Parameters

b
Boolean

The boolean to be printed

Attributes

Remarks

Prints a boolean value. The string produced by java.lang.String#valueOf(boolean) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(boolean).

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.

See also

Applies to

Print(Char)

Prints a character.

[Android.Runtime.Register("print", "(C)V", "GetPrint_CHandler")]
public virtual void Print (char c);
[<Android.Runtime.Register("print", "(C)V", "GetPrint_CHandler")>]
abstract member Print : char -> unit
override this.Print : char -> unit

Parameters

c
Char

The char to be printed

Attributes

Remarks

Prints a character. The character is translated into one or more bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(char).

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.

See also

Applies to

Print(Double)

Prints a double-precision floating-point number.

[Android.Runtime.Register("print", "(D)V", "GetPrint_DHandler")]
public virtual void Print (double d);
[<Android.Runtime.Register("print", "(D)V", "GetPrint_DHandler")>]
abstract member Print : double -> unit
override this.Print : double -> unit

Parameters

d
Double

The double to be printed

Attributes

Remarks

Prints a double-precision floating-point number. The string produced by java.lang.String#valueOf(double) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(double).

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.

See also

Applies to

Print(Int32)

Prints an integer.

[Android.Runtime.Register("print", "(I)V", "GetPrint_IHandler")]
public virtual void Print (int i);
[<Android.Runtime.Register("print", "(I)V", "GetPrint_IHandler")>]
abstract member Print : int -> unit
override this.Print : int -> unit

Parameters

i
Int32

The int to be printed

Attributes

Remarks

Prints an integer. The string produced by java.lang.String#valueOf(int) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(int).

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.

See also

Applies to

Print(Int64)

Prints a long integer.

[Android.Runtime.Register("print", "(J)V", "GetPrint_JHandler")]
public virtual void Print (long l);
[<Android.Runtime.Register("print", "(J)V", "GetPrint_JHandler")>]
abstract member Print : int64 -> unit
override this.Print : int64 -> unit

Parameters

l
Int64

The long to be printed

Attributes

Remarks

Prints a long integer. The string produced by java.lang.String#valueOf(long) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(long).

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.

See also

Applies to

Print(Single)

Prints a floating-point number.

[Android.Runtime.Register("print", "(F)V", "GetPrint_FHandler")]
public virtual void Print (float f);
[<Android.Runtime.Register("print", "(F)V", "GetPrint_FHandler")>]
abstract member Print : single -> unit
override this.Print : single -> unit

Parameters

f
Single

The float to be printed

Attributes

Remarks

Prints a floating-point number. The string produced by java.lang.String#valueOf(float) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(float).

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.

See also

Applies to

Print(String)

Prints a string.

[Android.Runtime.Register("print", "(Ljava/lang/String;)V", "GetPrint_Ljava_lang_String_Handler")]
public virtual void Print (string? s);
[<Android.Runtime.Register("print", "(Ljava/lang/String;)V", "GetPrint_Ljava_lang_String_Handler")>]
abstract member Print : string -> unit
override this.Print : string -> unit

Parameters

s
String

The String to be printed

Attributes

Remarks

Prints a string. If the argument is null then the string "null" is printed. Otherwise, the string's characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the #write(int) method.

Java documentation for java.io.PrintWriter.print(java.lang.String).

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