PrintWriter.Println Method

Definition

Overloads

Println(String)

Prints a String and then terminates the line.

Println(Single)

Prints a floating-point number and then terminates the line.

Println(Int32)

Prints an integer and then terminates the line.

Println(Double)

Prints a double-precision floating-point number and then terminates the line.

Println(Int64)

Prints a long integer and then terminates the line.

Println(Char)

Prints a character and then terminates the line.

Println(Boolean)

Prints a boolean value and then terminates the line.

Println(Object)

Prints an Object and then terminates the line.

Println()

Terminates the current line by writing the line separator string.

Println(Char[])

Prints an array of characters and then terminates the line.

Println(String)

Prints a String and then terminates the line.

[Android.Runtime.Register("println", "(Ljava/lang/String;)V", "GetPrintln_Ljava_lang_String_Handler")]
public virtual void Println (string? x);
[<Android.Runtime.Register("println", "(Ljava/lang/String;)V", "GetPrintln_Ljava_lang_String_Handler")>]
abstract member Println : string -> unit
override this.Println : string -> unit

Parameters

x
String

the String value to be printed

Attributes

Remarks

Prints a String and then terminates the line. This method behaves as though it invokes #print(String) and then #println().

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

Println(Single)

Prints a floating-point number and then terminates the line.

[Android.Runtime.Register("println", "(F)V", "GetPrintln_FHandler")]
public virtual void Println (float x);
[<Android.Runtime.Register("println", "(F)V", "GetPrintln_FHandler")>]
abstract member Println : single -> unit
override this.Println : single -> unit

Parameters

x
Single

the float value to be printed

Attributes

Remarks

Prints a floating-point number and then terminates the line. This method behaves as though it invokes #print(float) and then #println().

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

Applies to

Println(Int32)

Prints an integer and then terminates the line.

[Android.Runtime.Register("println", "(I)V", "GetPrintln_IHandler")]
public virtual void Println (int x);
[<Android.Runtime.Register("println", "(I)V", "GetPrintln_IHandler")>]
abstract member Println : int -> unit
override this.Println : int -> unit

Parameters

x
Int32

the int value to be printed

Attributes

Remarks

Prints an integer and then terminates the line. This method behaves as though it invokes #print(int) and then #println().

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

Applies to

Println(Double)

Prints a double-precision floating-point number and then terminates the line.

[Android.Runtime.Register("println", "(D)V", "GetPrintln_DHandler")]
public virtual void Println (double x);
[<Android.Runtime.Register("println", "(D)V", "GetPrintln_DHandler")>]
abstract member Println : double -> unit
override this.Println : double -> unit

Parameters

x
Double

the double value to be printed

Attributes

Remarks

Prints a double-precision floating-point number and then terminates the line. This method behaves as though it invokes #print(double) and then #println().

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

Applies to

Println(Int64)

Prints a long integer and then terminates the line.

[Android.Runtime.Register("println", "(J)V", "GetPrintln_JHandler")]
public virtual void Println (long x);
[<Android.Runtime.Register("println", "(J)V", "GetPrintln_JHandler")>]
abstract member Println : int64 -> unit
override this.Println : int64 -> unit

Parameters

x
Int64

the long value to be printed

Attributes

Remarks

Prints a long integer and then terminates the line. This method behaves as though it invokes #print(long) and then #println().

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

Applies to

Println(Char)

Prints a character and then terminates the line.

[Android.Runtime.Register("println", "(C)V", "GetPrintln_CHandler")]
public virtual void Println (char x);
[<Android.Runtime.Register("println", "(C)V", "GetPrintln_CHandler")>]
abstract member Println : char -> unit
override this.Println : char -> unit

Parameters

x
Char

the char value to be printed

Attributes

Remarks

Prints a character and then terminates the line. This method behaves as though it invokes #print(char) and then #println().

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

Applies to

Println(Boolean)

Prints a boolean value and then terminates the line.

[Android.Runtime.Register("println", "(Z)V", "GetPrintln_ZHandler")]
public virtual void Println (bool x);
[<Android.Runtime.Register("println", "(Z)V", "GetPrintln_ZHandler")>]
abstract member Println : bool -> unit
override this.Println : bool -> unit

Parameters

x
Boolean

the boolean value to be printed

Attributes

Remarks

Prints a boolean value and then terminates the line. This method behaves as though it invokes #print(boolean) and then #println().

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

Applies to

Println(Object)

Prints an Object and then terminates the line.

[Android.Runtime.Register("println", "(Ljava/lang/Object;)V", "GetPrintln_Ljava_lang_Object_Handler")]
public virtual void Println (Java.Lang.Object? x);
[<Android.Runtime.Register("println", "(Ljava/lang/Object;)V", "GetPrintln_Ljava_lang_Object_Handler")>]
abstract member Println : Java.Lang.Object -> unit
override this.Println : Java.Lang.Object -> unit

Parameters

x
Object

The Object to be printed.

Attributes

Remarks

Prints an Object and then terminates the line. This method calls at first String.valueOf(x) to get the printed object's string value, then behaves as though it invokes #print(String) and then #println().

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

Println()

Terminates the current line by writing the line separator string.

[Android.Runtime.Register("println", "()V", "GetPrintlnHandler")]
public virtual void Println ();
[<Android.Runtime.Register("println", "()V", "GetPrintlnHandler")>]
abstract member Println : unit -> unit
override this.Println : unit -> unit
Attributes

Remarks

Terminates the current line by writing the line separator string. The line separator string is defined by the system property line.separator, and is not necessarily a single newline character ('\n').

Java documentation for java.io.PrintWriter.println().

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

Println(Char[])

Prints an array of characters and then terminates the line.

[Android.Runtime.Register("println", "([C)V", "GetPrintln_arrayCHandler")]
public virtual void Println (char[]? x);
[<Android.Runtime.Register("println", "([C)V", "GetPrintln_arrayCHandler")>]
abstract member Println : char[] -> unit
override this.Println : char[] -> unit

Parameters

x
Char[]

the array of char values to be printed

Attributes

Remarks

Prints an array of characters and then terminates the line. This method behaves as though it invokes #print(char[]) and then #println().

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

Applies to