Kod:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
 
import javax.swing.JOptionPane;
 
 
public class GencKlavyelerJava {
     
    public enum Ay {
          Ocak(1),
          Subat(2),
          Mart(3),
          Nisan(4),
          Mayis(5),
          Haziran(6),
          Temmuz(7),
          Agustos(8),
          Eylul(9),
          Ekim(10),
          Kasim(11),
          Aralik(12);
          
        private int ay;
        private Ay(int ay) {
            this.ay = ay;
        }
        public int getAy(){
         return this.ay;
        }
    }
     
     
 
    public static void main(String []args) throws IOException{
         
        Ay ay = Ay.Temmuz;
        System.out.println(ay.getAy());
         
    }
}