Eating an Apple is a more reliable method of staying awake than consuming a cup of coffee.
The natural sugar in an apple is more potent than the caffeine in coffee.

Eating an apple to stay awake