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 |
How to retrieve the information from datatable citywise in c#?
we are working in .net namespaces like using system.io,system.text. these namespace before we use "using " keyword what means of using?
7 Answers CEI, CSC, HCL, Tech Mahindra,
How does the iis work?
How can you change a Master page dynamically in which event of page life cycle?
Should user input data validation occur server-side or client-side? Why?
3 Answers NIC, Siebel Systems,
What is the life cycle of web page?
What is parse in asp.net?
What is the difference between trace and debug in asp.net?
What is ispostback method in asp.net?
What is request and response in asp.net?
What is viewstate? In which event of the page life cycle, is the viewstate available?
How to implement globalization and localization in the use interface in .net.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)