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.

Answers were Sorted based on User's Feedback



How can u sort strings in array where strings are passed to method as arguments...

Answer / ratnesh

String[] s={"hdf","sdfer","fdf","astrf"};
Array arr = new Array(s);
arr.Sort();

Is This Answer Correct ?    38 Yes 4 No

How can u sort strings in array where strings are passed to method as arguments...

Answer / 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

How can u sort strings in array where strings are passed to method as arguments...

Answer / shaukat

String[] s={"hdf","sdfer","fdf","astrf"};
Array.Sort();

Is This Answer Correct ?    9 Yes 6 No

Post New Answer

More ASP.NET Interview Questions

Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   Siebel Systems,


Give 2 examples for scenarios when routing is not applied?

0 Answers   NA,


Can master pages be nested?

0 Answers  


What is view state and use of it ?

1 Answers  


What is cross page posting? How is it done?

0 Answers  


How can we Validate a Controls in ASP.NET page using JavaScript?

0 Answers   QuestPond,


What is advantage of code behind coding in ASP.NET?

0 Answers   Sans Pareil IT Services,


What Name space does the web page belon in the .net framework class hierarchy?

1 Answers   L&T, Wipro,


What is the difference between server-side scripting and client-side scripting?

0 Answers  


how to update data set?

3 Answers   IBM, TCS,


What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No Generic? Pls Explain with example.

2 Answers   Polaris, Syntel,


What is reflection and disadvantages of reflection ?

2 Answers   CTC, Microsoft,


Categories