As the title says, I was wondering if there’s a command for switching the location of two values in a IntList. I am trying to make a function so i can create a minheap and it just seems kind of boring to save the value in a local variable.
There is no such thing as “intList.swap(1,2);”
You can always create a new function.
If you have any questions like this, you can check out processing/java reference for “methods”.
Take a look here: