Udostępnij za pośrednictwem


JSONArray.Join(String) Method

Definition

Returns a new string by alternating this array's values with separator.

[Android.Runtime.Register("join", "(Ljava/lang/String;)Ljava/lang/String;", "GetJoin_Ljava_lang_String_Handler")]
public virtual string? Join (string? separator);
[<Android.Runtime.Register("join", "(Ljava/lang/String;)Ljava/lang/String;", "GetJoin_Ljava_lang_String_Handler")>]
abstract member Join : string -> string
override this.Join : string -> string

Parameters

separator
String

Returns

Attributes

Exceptions

Remarks

Returns a new string by alternating this array's values with separator. This array's string values are quoted and have their special characters escaped. For example, the array containing the strings '12" pizza', 'taco' and 'soda' joined on '+' returns this:

"12\" pizza"+"taco"+"soda"

Java documentation for org.json.JSONArray.join(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