Documentos de Académico
Documentos de Profesional
Documentos de Cultura
java
//ERICK GAEL ORTEGA
package javaapplicationgas.newpackage;
import java.util.Scanner;
//ATRIBUTOS
public static int mejorCorreror(Correror cor[]) {
float tiempo;
int mejor = 0;
tiempo = cor[0].gettiempo();
for (int i = 1; i < cor.length; i++) {
if (cor[i].gettiempo() < tiempo) {
tiempo = cor[i].gettiempo();
}
}
return mejor;
}
//METODOS
" + (i + 1));
mejorCorreror = mejorCorreror(cor);
System.out.println("EL CORREDOR CON MEJOR TIEMPO ES: ");
System.out.println(cor[mejorCorreror].mostrarDatos());