Share via


TextUtils.Join Method

Definition

Overloads

Join(ICharSequence, IIterable)

Returns a string containing the tokens joined by delimiters.

Join(ICharSequence, Object[])

Returns a string containing the tokens joined by delimiters.

Join(String, IIterable)

Returns a string containing the tokens joined by delimiters.

Join(String, Object[])

Returns a string containing the tokens joined by delimiters.

Join(ICharSequence, IIterable)

Returns a string containing the tokens joined by delimiters.

[Android.Runtime.Register("join", "(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;", "")]
public static string? Join (Java.Lang.ICharSequence delimiter, Java.Lang.IIterable tokens);
[<Android.Runtime.Register("join", "(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;", "")>]
static member Join : Java.Lang.ICharSequence * Java.Lang.IIterable -> string

Parameters

delimiter
ICharSequence

a CharSequence that will be inserted between the tokens. If null, the string "null" will be used as the delimiter.

tokens
IIterable

an array objects to be joined. Strings will be formed from the objects by calling object.toString(). If tokens is null, a NullPointerException will be thrown. If tokens is empty, an empty string will be returned.

Returns

Attributes

Remarks

Returns a string containing the tokens joined by delimiters.

Java documentation for android.text.TextUtils.join(java.lang.CharSequence, java.lang.Iterable).

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

Join(ICharSequence, Object[])

Returns a string containing the tokens joined by delimiters.

[Android.Runtime.Register("join", "(Ljava/lang/CharSequence;[Ljava/lang/Object;)Ljava/lang/String;", "")]
public static string? Join (Java.Lang.ICharSequence delimiter, Java.Lang.Object[] tokens);
[<Android.Runtime.Register("join", "(Ljava/lang/CharSequence;[Ljava/lang/Object;)Ljava/lang/String;", "")>]
static member Join : Java.Lang.ICharSequence * Java.Lang.Object[] -> string

Parameters

delimiter
ICharSequence

a CharSequence that will be inserted between the tokens. If null, the string "null" will be used as the delimiter.

tokens
Object[]

an array objects to be joined. Strings will be formed from the objects by calling object.toString(). If tokens is null, a NullPointerException will be thrown. If tokens is an empty array, an empty string will be returned.

Returns

Attributes

Remarks

Returns a string containing the tokens joined by delimiters.

Java documentation for android.text.TextUtils.join(java.lang.CharSequence, 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

Join(String, IIterable)

Returns a string containing the tokens joined by delimiters.

public static string? Join (string delimiter, Java.Lang.IIterable tokens);
static member Join : string * Java.Lang.IIterable -> string

Parameters

delimiter
String

a CharSequence that will be inserted between the tokens. If null, the string "null" will be used as the delimiter.

tokens
IIterable

an array objects to be joined. Strings will be formed from the objects by calling object.toString(). If tokens is null, a NullPointerException will be thrown. If tokens is empty, an empty string will be returned.

Returns

Remarks

Returns a string containing the tokens joined by delimiters.

Java documentation for android.text.TextUtils.join(java.lang.CharSequence, java.lang.Iterable).

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

Join(String, Object[])

Returns a string containing the tokens joined by delimiters.

public static string? Join (string delimiter, Java.Lang.Object[] tokens);
static member Join : string * Java.Lang.Object[] -> string

Parameters

delimiter
String

a CharSequence that will be inserted between the tokens. If null, the string "null" will be used as the delimiter.

tokens
Object[]

an array objects to be joined. Strings will be formed from the objects by calling object.toString(). If tokens is null, a NullPointerException will be thrown. If tokens is an empty array, an empty string will be returned.

Returns

Remarks

Returns a string containing the tokens joined by delimiters.

Java documentation for android.text.TextUtils.join(java.lang.CharSequence, 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