How can u sort strings in array where strings are passed to
method as arguments.
Answers were Sorted based on User's Feedback
Answer / ratnesh
String[] s={"hdf","sdfer","fdf","astrf"};
Array arr = new Array(s);
arr.Sort();
Is This Answer Correct ? | 38 Yes | 4 No |
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 |
Answer / shaukat
String[] s={"hdf","sdfer","fdf","astrf"};
Array.Sort();
Is This Answer Correct ? | 9 Yes | 6 No |
Disable Session State at the Page Level
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
Differentiate an ADO.NET Dataset and an ADO Recordset with its functionality?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What is recordset asp?
How can we use Web API with ASP.NET Web Form?
Can we use MSSql as backend in asp.net...if yes then How.?
Explain the different types of directives in .net?
What are session state modes in asp.net?
“~” means in asp.net application?
what is session,cokkies in asp.net??
What is the difference between web.config and machine.config in ASP.NET?