/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package borrame;

import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author felix
 */
public class prueba {
    static public void main(String args[]) {
        
        Alumno alumnos[] = {new Alumno(5), new Alumno(6), new Alumno(8),
            new Alumno(4), new Alumno(10)};
        
        Alumno.PROMEDIO_MINIMO = 6;
        
        for(int i =0; i<5; i++)
            System.out.println(alumnos[i].estaAdmitido());

        int cuenta = 0;
        for(int i =0; i<5; i++)
           cuenta += alumnos[i].estaAdmitido() ? 1 : 0;
        
        System.out.println("Los Alumnos con promedio minimo de " +
                Alumno.PROMEDIO_MINIMO + " son " + cuenta);
        
        Calendar a = Calendar.getInstance();
        System.out.println(a.get(Calendar.YEAR));
        System.out.println(a.get(Calendar.MONTH));
        System.out.println(a.get(Calendar.DATE));

    }
}
