Skip to main content
Post Reopened by duplode, Mark Rotteveel, Nguyễn Văn Phong
Post Undeleted by duplode, Unmitigated, Eran
Rollback to Revision 3
Source Link
Arvind Kumar Avinash
  • 81.4k
  • 10
  • 100
  • 144

Merge two one dimensional String arrays to a single array with custom delimiter

I have two arrays:

a = ["a","b","c"]

b = ["d","e","f"]

How can I merge them into a single array, like so:

c = ["a=d", "b=e", "c=f"]

using the equals sign (=) as a delimiter between the merged strings without using a for-loop?

Merge two String arrays to a single array with custom delimiter

I have two arrays:

a = ["a","b","c"]

b = ["d","e","f"]

How can I merge them into a single array, like so:

c = ["a=d", "b=e", "c=f"]

using the equals sign (=) as a delimiter between the merged strings without using a for-loop?

Merge two one dimensional String arrays to a single array with delimiter

I have two arrays:

a = ["a","b","c"]

b = ["d","e","f"]

How can I merge them into a single array, like so:

c = ["a=d", "b=e", "c=f"]

using the equals sign (=) as a delimiter between the merged strings?

Post Deleted by Wiktor Stribiżew, Eklavya, Trenton McKinney
Post Closed as "Not suitable for this site" by zero298, greg-449, Robert
Post Reopened by Blastfurnace, BDL, E_net4
Post Undeleted by Arvind Kumar Avinash, Shubham Sharma, RavinderSingh13
Post Deleted by Wiktor Stribiżew, Trenton McKinney, Ryszard Czech
Post Closed as "Duplicate" by Wiktor Stribiżew java
Notice removed Content dispute by CommunityBot
Post Unlocked by CommunityBot
Post Locked by Machavity
Notice added Content dispute by Machavity
Post Reopened by dreamcrash, RavinderSingh13, anubhava arrays
added 25 characters in body; edited title
Source Link
andi2.2
  • 134
  • 1
  • 11

Merge two one dimensional String arrays to a single array with custom delimiter

I have two arrays:

a = {"a"["a","b","c"}"c"]

b = {"d"["d","e","f"}"f"]

How can I merge them into a single array, like so:

c = {"a=d"["a=d", "b=e", "c=f"}"c=f"]

using the equals sign (=) as a delimiter between the merged strings without using a for-loop?

Merge two one dimensional String arrays to a single array with delimiter

I have two arrays:

a = {"a","b","c"}

b = {"d","e","f"}

How can I merge them into a single array, like so:

c = {"a=d", "b=e", "c=f"}

using the equals sign (=) as a delimiter between the merged strings?

Merge two String arrays to a single array with custom delimiter

I have two arrays:

a = ["a","b","c"]

b = ["d","e","f"]

How can I merge them into a single array, like so:

c = ["a=d", "b=e", "c=f"]

using the equals sign (=) as a delimiter between the merged strings without using a for-loop?

Post Reopened by Shubham Sharma, Aniket Sahrawat, Tushar Gupta - curioustushar
Post Undeleted by Arvind Kumar Avinash, Eran, Aniket Sahrawat
Post Deleted by Trenton McKinney, oguz ismail, Wiktor Stribiżew
Post Undeleted by Arvind Kumar Avinash, Eran, Aniket Sahrawat
Post Deleted by oguz ismail, Ryszard Czech, Mofi
Post Undeleted by Arvind Kumar Avinash, Eran, Unmitigated
Post Deleted by oguz ismail, mck, Trenton McKinney
Notice removed Content dispute by CommunityBot
Post Unlocked by CommunityBot