The dequeue method will also use method incrementIndex to add one to frontIndex (with wrap-around) before returning the value that was at the front of the queue. The other queue methods (empty and size) are the same as those methods for the Stack class -- they just use the value of the numItems field.
In other words, drinking alcohol is not entirely positive. Excessive drinking can cause increased risk of stroke, arrhythmia (irregular heartbeat), and heart muscle disease. Excessive calories that you can get from alcohol can raise your triglyceride (another kind of bad cholesterol). And the increased triglyceride can be potential to affect your LDL to rise.
Alcohol also has a mild anti-coagulating effect, keeping platelets from clumping together to form clots. Both actions can reduce risk of heart attack but exactly how alcohol influences either one still remains unclear. On the other hand, drinking more than three drinks a day has a direct toxic effect on the heart. Heavy drinking, particularly over time, can damage the heart and lead to high blood pressure, alcoholic cardiomyopathy, (enlarged and weakened heart), congestive heart failure, and stroke. Heavy drinking puts more fat into the circulation in your body, raising your triglygeride level.