When boiling eggs, never put them in the pan directly. Wash the eggs first and then soak them in water for 10 minute, so that the boiled eggs can be peeled easily and will not stick to the shell.
You can also add some vinegar and salt to the water before cooking, which can soften the eggshell, not easy to crack, and easy to peel after cooking.