Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the file extension of web service?

996


What is redirectpermanent in asp.net?

1072


What is sta?

982


What is cache in asp net?

1000


Where the cookie value is stored?

941


What is meant by asp.net?

981


How you will manage the state of ASP.NET controls?

1064


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1858


What are the different session state management options available in asp.net?

989


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2155


What is skin in asp.net?

957


What is data caching?

992


What is jade template engine?

1038


What is the full meaning of asp.net?

1070


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1838