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
List the types of authentication supported by asp.net?
What is asp.net and its advantages?
In how many ways we can retrieve table records count?
How tooltip is set through code-behind in ASP.NET?
What is variable and constant in .net programming language?
What is a uri query?
What are the events that happen when a client requests an asp.net page from iis server?
What are the differences between the response.write() and response.output.write()?
What is GAC in ASP.NET 2.0
Explain difference between dataset and recordset?
Differentiate between namespace and assembly.
What is comparevalidator?
Can you set the session out time manually?
List down the sequence of methods called during the page load.
How you will improve web application performance?