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
How do you store a value in viewstate and retrieve them?
Differentiate the session object and application object?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
What is slidemaster?
What is query string in asp.net?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What is the difference between a candidate key and primary key?
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
What is a user session?
When you use Ajax controls in the ASP.NET application?
How does a web application session work?
Define what is razor? : asp.net mvc
Explain the asp.net mvc folder conventions? : asp.net mvc
Explain cookies with example.
What is inheritance and an how it be used, example with an example?