how to call a function
Hello, completely new to Java. I want to sort the values inside of
array1[0].
array1 is : array1 = new int [2][50].
public void sort(){
//code in here sorts the values
}
QUESTION: How do I call the sort function?? In C, I would do
sort(array1[0]) and it would work. In java, it gives me error saying
"the method sort in __ is not applicable for the arguments (int)" .
Can someone help me make the call to sort() ?
Thanks!
.
Relevant Pages
- Re: The System.Collections.Generic namespace
... I would like to implement the following code written in java using c# ... The problem when trying to convert this type of code is that the sort ... I see) to sort in c# is to declare a concrete class and not an ... public void op { ... (microsoft.public.dotnet.languages.csharp) - Re: e-commerce portal
... haven't had a single site that sees a need for this sort of hardening. ... Java anymore. ... PHP is a technology that has gotten a harsh rap due to large security ... Marketing at its worse, eh? ... (comp.databases.pick) - Re: The System.Collections.Generic namespace
... I would like to implement the following code written in java using c# ... The problem when trying to convert this type of code is that the sort ... I see) to sort in c# is to declare a concrete class and not an ... public void op { ... (microsoft.public.dotnet.languages.csharp) - Re: An interview question
... The interviewer said that in C++ std lib, sorting algorithm is quick sort ... by default, while in Java, the default one is merge sort. ... Another thing to note isthat the incredible speed of quicksort is not due to ... (comp.programming) - Re: e-commerce portal
... because I've never really been able to purposely hit it. ... pool licenses sitting in the background and at the most I've seen 18 ... haven't had a single site that sees a need for this sort of hardening. ... About Java, it's really a shame that by the time RD finally came out ... (comp.databases.pick) |
|