User Comments for the tutorial:

Quick Sort In Java

Total comments: 9      View Tutorial    Discuss: Quick Sort In Java



nice ascending sorting dude
nice brain storming there.. is there posible that i can use this code in creating descending sorting?? by the way, the program is great but it is quite long and complicated.. 

Equal elements
What if two elements in the array are equal? Then the while loop will run forever. How do you solve this? 

exellence report
hi,, i was very helpful by copying this program program code is excellent ,it can be understood by everyone that is the the very good thing... 

quick sort program using java
Its very useful for the beginners but I need the program using buffer  

quick sort
Hi, I am just trying to understand the concept of quicksort. I have been searching the web in order to find a satisfactory explanation, so far this is the best. However, when I copy and paste the source code to netbeans, it gives me the following e 

error when array contains same numbers
while (lo<hi && array[hi] > mid) { hi--; } must be while (lo<hi && array[hi] >= mid) { hi--; } to solve this 

thank u very much...
thank u very much do u know ur website famous in my country in department every student(PROGRAMMERS) take inform-ns. in ur site explanation very nice. God bless you. from Zerocool 

Does not work well!
This algorithm does not work well for duplicate items (had to modify it slightly to do so) and reaaaalllly does not work for large amounts of items to sort. At 50,000 it produces a stack overflow... I need to sort a million items.... =0( 

about this work
this very godd web site to bigginners for learn java.thank u very much to establish this. 

Related Tutorial and Articles
Java Beginners

merge sorting in arrays - Java Beginners
merge sorting in arrays  Write a program to insert string or characters to an array and apply merge sorting on this array  Hi Friend, Please visit the following link: 

Java Beginners

java sorting codes - Java Beginners
the following link: Here you will get various sorting algorithms. Hope that it will be helpful for sorting codes  I want javasorting codes. please be kind enogh 

Java Beginners

sorting - Java Beginners
values in the array in the ascending order, and returns the sorted array  Easy Sorting: For all the values in the array A, find the largest and store 

JavaScript Questions

quicksort  public static double median (double []A) { int n = A.length; quicksort(A); //sort the elements of A using quicksort if ((n % 2) == 1)return A[n/2]; else return (A[n/2 - 1] + A[n/2])/ 2.0 

Java Beginners

Sorting  can any help me know which sorting algorithm java uses for sorting collection and arrays 

Java Beginners

Sorting in java - Java Beginners
Sorting in java  Hello.. I want you to help me with this question.. 1. A statistics company wants to keep information of families. The information of a family is the family name, the number of members and first name of each 

Java Beginners

Sorting algorithms - Java Beginners
Sorting algorithms  I'v being given an assignment and I still couldn't find a proper answer for the following questions.Can anyone pls pls help me wi it? 1)Compare and contrast efficiencies of Shell,Quick,Heap and Radix sort 

Java Server Faces Questions

ascending or descending order in jsp using servlet - Java Server Faces Questions
ascending or descending order in jsp using servlet   My Problem is that how to sort any column in ascending or descending order,with following... column changes the sort direction from ascending to descending and vice versa 

Java Beginners

Sorting an ArrayList
Sorting an ArrayList  print("code sample");Hello All, I am working on a program for school and I am having trouble with sorting my list. The numbers I receive in my output are correct, but not in ascending order as required 

Java Beginners

Array sorting - Java Beginners
Array sorting   Hello All. I need to sort one array based on the arrangement of another array. I fetch two arrays from somewhere and they are related. For example, String type[] = {"X","T","3","R","9"}; String