i am taking input string from user,
for ex user input "welcome"
now i want to remove this "w" and attach to the last of the string so the newly created word become "elcomew" and i want to do every time user click on a button in a webpage... and first character should remove and attached to the last .. can anybody give solution with code...
Loading
Blocked AccountPosted Nov 21, 2008, 1:15 AM
use this for doing that.
string str = "welcome";
string newString = str.Substring(1, str.Length - 1) + str.Substring(0, 1);