Hi All,
I am using below code for reverse string :
static void reverseString(Args _args)
{
str string = "My name is test";
str string3 = "";
List string1 = new List(Types::String) ;
int i ;
;
string1 = strSplit(string,string3);
for(i=string1.elements()-1;i>=0;i--)
{
string3 = string1.addEnd(i)+string3 ;
}
info(str2int(string3));
}
My output would be like : "test is name my" but code is not working as expected.
Please suggest
*This post is locked for comments
I have the same question (0)