Share via


PrintStream.Println Method

Definition

Overloads

Println(String)

Prints a String and then terminate the line.

Println(Single)

Prints a float and then terminate the line.

Println(Int32)

Prints an integer and then terminate the line.

Println(Double)

Prints a double and then terminate the line.

Println(Int64)

Prints a long and then terminate the line.

Println(Char)

Prints a character and then terminate the line.

Println(Boolean)

Prints a boolean and then terminate the line.

Println(Object)

Prints an Object and then terminate the line.

Println()

Terminates the current line by writing the line separator string.

Println(Char[])

Prints an array of characters and then terminate the line.

Println(String)

Prints a String and then terminate the line.

[Android.Runtime.Register("println", "(Ljava/lang/String;)V", "GetPrintln_Ljava_lang_String_Handler")]
public virtual void Println(string? x);

Parameters

x
String

The String to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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 float and then terminate the line.

[Android.Runtime.Register("println", "(F)V", "GetPrintln_FHandler")]
public virtual void Println(float x);

Parameters

x
Single

The float to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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 terminate the line.

[Android.Runtime.Register("println", "(I)V", "GetPrintln_IHandler")]
public virtual void Println(int x);

Parameters

x
Int32

The int to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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 and then terminate the line.

[Android.Runtime.Register("println", "(D)V", "GetPrintln_DHandler")]
public virtual void Println(double x);

Parameters

x
Double

The double to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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 and then terminate the line.

[Android.Runtime.Register("println", "(J)V", "GetPrintln_JHandler")]
public virtual void Println(long x);

Parameters

x
Int64

a The long to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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 terminate the line.

[Android.Runtime.Register("println", "(C)V", "GetPrintln_CHandler")]
public virtual void Println(char x);

Parameters

x
Char

The char to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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 and then terminate the line.

[Android.Runtime.Register("println", "(Z)V", "GetPrintln_ZHandler")]
public virtual void Println(bool x);

Parameters

x
Boolean

The boolean to be printed

Attributes

Remarks

Java documentation for java.io.PrintStream.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 terminate the line.

[Android.Runtime.Register("println", "(Ljava/lang/Object;)V", "GetPrintln_Ljava_lang_Object_Handler")]
public virtual void Println(Java.Lang.Object? x);

Parameters

x
Object

The Object to be printed.

Attributes

Remarks

Java documentation for java.io.PrintStream.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();
Attributes

Remarks

Java documentation for java.io.PrintStream.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 terminate the line.

[Android.Runtime.Register("println", "([C)V", "GetPrintln_arrayCHandler")]
public virtual void Println(char[]? x);

Parameters

x
Char[]

an array of chars to print.

Attributes

Remarks

Java documentation for java.io.PrintStream.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