[Solved] How do I do my homework with Arrays, Functions and Binary Search? [closed]
For a start, here is the original ArregloBinario class with the spacing fixed up: package laboratorio9; import java.util.Random; import java.util.Arrays; public class ArregloBinario { private int[] datos; private static Random generador = new Random(); public ArregloBinario (int tamanio) { datos = new int[tamanio]; for (int i=0; i<tamanio; i++) datos[i] = 10 + generador.nextInt(90); Arrays.sort(datos); } … Read more