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 manifest in .net framework?
What does clearing cache?
What is asp.net? How is it different from asp?
How will you load dynamic assembly? How will create assesblies at run time?
What is the difference between union and structure?
How is my content secured from unauthorized access?
Explain the difference between the web config and machine config.
What is the difference between c# and .net?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
Is asp.net outdated?
What is connection pooling and how to enable and disable connection pooling?
How can we inherit a static variable?
What is Web API?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is difference between datalist and gridview?