Does anyone know why the getAllLoyaltyCards method is returning a hex value and not the items of the list : I have no idea why this is returning a hex value, and i am only a beginner at Java.
public class LoyaltyCardList
{
    private ArrayList <LoyaltyCard> LoyaltyCards; 

    /**
     * 
     */
    public LoyaltyCardList()
    {
        LoyaltyCards = new ArrayList <LoyaltyCard> ();
    }

    /**
     * 
     */
    public void addLoyaltyCard(LoyaltyCard newLoyaltyCard)
    {
        LoyaltyCards.add(newLoyaltyCard);
    }
    
    public void getAllLoyaltyCards()
    {
        for ( LoyaltyCard loyaltyCard : LoyaltyCards)
        {
            System.out.println(LoyaltyCards);
        }
        
    }