I think that I understand the concept fairly well, but I appear to be having some issues with syntax perhaps.
I have 2 classes. My main class and BubbleSort.java. In my main class I receive values from the user and store them in "int array[]". The values appear to have stored correctly because I can use a for loop to read them back out.
Next I want to call something along the lines of:
BubbleSort(array[], array.length);
to send the array to the bubblesort procedure. This is how I have my bubble sort started.
public class BubbleSort{
public int trade(int[]array, int length){
I don't think however that the error is in the sorting method itself. My best guess is that I goofed with passing the array. Can someone offer some guidance?
Regards,
Dragonfyre