Hello, new to this forum and quite new to
Java, have a bit of C++ experience.
I wonder why this is not working:
I think the code and what's it intended to do should be pretty clear, if not please ask.
Here's the console output I get:
Seems to me the bubbleSort() method is working on a copy of the passed array (as the array is unchanged afterwards) ?
In C++ I probably would have passed a pointer to an int array, how is this in Java ? (if that's the mistake) ?
Thanks.