i have a string aabccefsdss.how can i get the string abcefsd.
or write the fallowing string with only character
occurrence of once .
Answer / dinesh
string s = "aabccefsdss";
char[] a = s.ToCharArray();
string d="";
foreach (char c in a)
{
if (!d.Contains(c.ToString()))
{
d = d + c;
}
}
MessageBox.Show(d);
Is This Answer Correct ? | 7 Yes | 0 No |
Explain about multithreading?
What is the property of a class in c#?
What does firstordefault mean in c#?
What is the difference between User controls and Custom Controls?
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
What is the usage of transponders?
How big is an int16?
What does assert() do in c#?
How to find the current application file path while runtime?
what is collections and what is generics
What are properties in C#?
Define property in c#.net?