yasodha


{ City } chennai
< Country > india
* Profession *
User No # 87187
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 9
Users Marked my Answers as Wrong # 0
Questions / { yasodha }
Questions Answers Category Views Company eMail




Answers / { yasodha }

Question { CTS, 7406 }

How can u sort strings in array where strings are passed to
method as arguments.


Answer

in c#.net

using system;
namespace new;
public class sorting
{
string [] str= new string[25];
public string ssort(params string []str)
{
array.sort(str);
foreach(string i in str)
{
console.writeline("The sort string is:{0}",i);
}
}
public class mainsort
{
sorting st=new sorting();
st.ssort("viji","anu","priya","baskar");
console.readline();
}

Is This Answer Correct ?    9 Yes 0 No