I call my swap method in main, but it doesn\'t change anything. What am I doing wrong?
public static void main(String[] args){ int mainArr[] = new int[
You are calling swapper the same number of times as there are elements in your array.