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 do you understand by aggregate dependency?
Explain the difference between dataset and datareader.
What is the significance of attaching a profile while creating a user?
How to disable disable browser's Back button in asp.net (JavaScript)?
Describe the events in the life cycle of a web application.
What is asp.net ajax?
What is true about application service provider?
To display data in a Repeater control which template you provide?
What is the file through which you can customize your asp.net application?
What are sharepoint pages?
What is difference between session and application in asp net?
1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????
What does asp stand for in asp.net?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
Describe state management in asp.net?