Topic: break and continue
Example-1:
Output:
Example-2:
Output:
Topic: Substring
Example:
Output:
Topic: IndexOf
Example:
Output:
Topic: Trim
Example:
Output
Also we have TrimStart and TrimEnd methods, which cat the beginning empty spaces and ending empty spaces appropriately.
Topic: Remove and Replace
Example-1:
Output:
Example-2:
Output:
Topic: Split and ToCharArray
Example-1:
Output:
Example-2:
Output:
Topic: Null and “??”
Example-1:
The above given code we can write in another way as below:
The result in both cases is same as below:
If the string is not null then:
Output:
Example-2:
Output:
If the value is not null then:
Output:
Переглядів: 167 |