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 ?.
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.
+ 1
Please AJ I still don't using understand can explain it with a code snippet