lundi 5 avril 2021

How to find two numbers that are closer to each other in an array

I was needing help on how to find 2 doubles that are close to each other from an array

double[] arrDub = new double[50];
        Arrays.setAll(arrDub, y -> arrDub[y] = Math.random());

This is all I got right now




Aucun commentaire:

Enregistrer un commentaire