This is because you have your do while statement wrong.

This is what it should look like but you've got an extra { after the while() bit.



do {
// statement
} while(condition);