
/*
Online Java - IDE, Code Editor, Compiler

Online Java is a quick and easy tool that helps you to build, compile, test your programs online.
*/

import java.util.*;

public class Main
{
    enum Club
    {
        FIXTURE1 ("Leicester vs Nottingham Forest"),
        FIXTURE2 ("Ipswich Town vs Leicester"),
        FIXTURE3 ("Manchester United vs Leicester");
        
        private Club()
        {
            System.out.println("In constructor");
            
        }
        
        private String fixture;
        
        Club (String fixture)
        {
            this.fixture=fixture;
            
        }
        
    }
    
    public static void main(String[] args) {
        System.out.println("Welcome to Online IDE!! Happy Coding :)");
        
        Club c;
        
        c = Club.FIXTURE1;
        
        Club [] allTeams = Club.values();
        
        System.out.println(Club.values()[0].name());   //should print Fixture 1
        
        
        
        for (enum b: Club.values())
        {
            System.out.println(b.fixture);
        }
        //alternatively can try from the array?
        
        //System.out.println(allTeams[0].name());

    

        
    }
}
