[header] How to sleep before final exams [title] Have your last meal at least two hours before bedtime. [step] A full stomach can keep you awake, especially if you're also stressing about an exam. Avoid heavy, greasy, rich, or spicy food before you sleep, as these foods are harder for your body to digest and can make it more difficult to fall asleep. 
You could also wake up in the middle of the night with heartburn, which would put a damper on your rest plans. [substeps] Eating a light snack before bed is fine.