0

What is a split in c# ?

I was trying to solve the jungle camping code coach, but I didn't understand it, so I searched it. And I came across something called a split. Please can someone tell me what a split is ?.

20th Apr 2020, 8:15 AM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
2 odpowiedzi
+ 2
split is use to divide string in multiple part from a specific point. This function return array. For example: String str = "aj-anant"; string[] name = str.split("-"); here we are dividing String into 2 part. Sometimes string maybe like this also "aj-anant-aj' so here string will be divided into 3 part.
20th Apr 2020, 8:23 AM
A͢J
A͢J - avatar
+ 1
Please AJ I still don't using understand can explain it with a code snippet
20th Apr 2020, 10:04 AM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar