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 file extension of web service?
What is redirectpermanent in asp.net?
What is sta?
What is cache in asp net?
Where the cookie value is stored?
What is meant by asp.net?
How you will manage the state of ASP.NET controls?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What are the different session state management options available in asp.net?
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
What is skin in asp.net?
What is data caching?
What is jade template engine?
What is the full meaning of asp.net?
How do you initiate validation on the server manually? What are two situations when you might you want to do that?