Greetings all.
I'm preparing for my java data structure/algorithms class and I'm starting a personal code repository of sorts and such.
I started out with c++ and my question is this: I'm implementing a controller class and a class full of sorting and search methods in java. Instead of copying the original array into a temp every time i sort it,
is there a way to deal with this array indirectly -- like using c++ pointers?
I know that there are no pointers in java, but please enlighten me as to what might be the most efficient way to run a lot of sorts on arrays or lists while keeping the original intact.
NOTE: the original array lives in the controller/main class, and is passed into the sorts.
Many Thanks