How can u sort strings in array where strings are passed to
method as arguments.
Answer Posted / yasodha
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 |
Post New Answer View All Answers
What is the difference between session.abandon() vs clear()?
What is application variable?
How do we sort the data from a dataset?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
What is the main differences between asp and asp.net?
How to disable validator control by client side JavaScript?
What is authentication in asp.net?
What is session state server?
What a diffgram is, and a good use for one?
Define cookie.
Why SessionID changes in every request in asp.net?
How do I open an ashx file in windows 7?
What is asp net objects?
How can you handle exceptions in asp.net?
What is custom events?