int[] arr = {4, 2, 34, 6, 70, 1, -4}; void setup() { selectionSort(arr); println(arr); } void selectionSort(int[] A) { int pos; for (int i=0; i