how to display out put

Posted by Gow.net under C# on 1/23/2012 | Points: 10 | Views : 909 | Status : [Member] | Replies : 1
my input "JOHN F KENNDY "
how to display that input in following format
"KENNEDY JOHN F "

gowthaman8870226416


Responses

Posted by: Naraayanan on: 1/23/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Try this way

  string str = "JOHN F KENNDY";

string[] st = str.Split(' ');
string result = st[2] + " " + st[0] + " " + st[1];
MessageBox.Show(result);


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Gow.net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response