When grilling isn't an option, boiling corn on the cob is a classic way of cooking it. You can even steam corn on the cob in the microwave when you want to enjoy it long after summer has ended.
cook the corn on the cob according to the packet instructions – this usually involves boiling for about 8 minutes from frozen. Drain the corn and allow to steam dry for a few minutes.