package scolarite;

import java.util.Arrays;

public class Etudiant {


	String nom;
    String prenom; 
    double[] notes;

    public Etudiant(String nom, String prenom)
    {
        this.nom = nom;
        this.prenom = prenom;
        this.notes = new double[0];
    }
    
    
    

    
    
    
    
    
    @Override
    public String toString() {
    	String res = this.nom.toUpperCase() + " "; // Einstein
    	res += String.valueOf(this.prenom.charAt(0)).toUpperCase(); // A
    	res += this.prenom.substring(1).toLowerCase() + " :"; // lbert
    	for (double n : this.notes)
    	{
    		res += " " + n;
    	}
    	return res;
    	// return "Etudiant [nom=" + nom + ", prenom=" + prenom + ", notes=" + Arrays.toString(notes) + "]";
    }
    
    

}