L
Learning Rocks
Guest
I am having 2 string arrays. I want to get not matched elements from Both strings. How to do it, pls help me.
string[] stringarray1, stringarray2;
stringarray1 = new string[5]{ “Element 1\n”, “Element 2\n”, “Element 3\n”, “Element 4\n”, “Element 5” }; stringarray2 = new string[]{ “Element 2”, “Element 3\n”, “Element 5” };
in above string array (either in stringarray1 or stringarray2) element may end with '\n' in both. If it's not added at the end of every string element, i need to add, compare and get the not matched elements
How to achieve it. Please help me
Thanks
Continue reading...
string[] stringarray1, stringarray2;
stringarray1 = new string[5]{ “Element 1\n”, “Element 2\n”, “Element 3\n”, “Element 4\n”, “Element 5” }; stringarray2 = new string[]{ “Element 2”, “Element 3\n”, “Element 5” };
in above string array (either in stringarray1 or stringarray2) element may end with '\n' in both. If it's not added at the end of every string element, i need to add, compare and get the not matched elements
How to achieve it. Please help me
Thanks
Continue reading...