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 should you do is you want to remove an existing component but would like to make some funtionalities?
Do I need to have the latest version of windows media player installed?
What are the parts of an http response?
What are sql notifications and sql invalidations?
Can more than one person use the same login?
What is the full form of asp.net?
Explain authorization levels in .net ?
Explain the updatepanel?
What is loop in asp.net?
Explain what are the advantages of asp.net mvc framework? : asp.net mvc
Hi this is the coding for adding data in to an xml table
i want the coding for update and delete
Try
Dim emp_xml_doc As New XmlDocument
If
System.IO.File.Exists(Server.MapPath("emp.xml")) Then
emp_xml_doc.Load(Server.MapPath("emp.xml"))
Dim myrow_element As XmlElement
myrow_element =
emp_xml_doc.CreateElement("EmpDetails")
Dim str As String
str = "
How can we prepairing Interview
What is mvc in asp.net interview question? : Asp.Net MVC
Which is better viewstate or session?
Where web.config file is used?