Is char a Separator
In this chapter you will learn:
Char.IsSeparator
using System; /* java 2 s .com*/
class MainClass {
public static void Main() {
string str = "This is a test. $23";
int i;
for(i=0; i < str.Length; i++) {
Console.Write(str[i] + " is");
if(Char.IsSeparator(str[i]))
Console.Write(" separator");
Console.WriteLine();
}
}
}
The code above generates the following result.
Next chapter...
What you will learn in the next chapter: