for (int i = 0; i < array_g.length; i++){ int largest = i; for (int j = largest + 1; j < array_g.length; j++) { if (array_g[j] >