La boucle ‘forEach’ sur un enumérateur

Author:


{filelink=4403}

public class EnumList {
  enum Etat { FROID, CHAUD };

  public static void main(String[] args) {
    for (Etat i : Etat.values()) {
      System.out.println(i);
    }
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *