Review
I went over all the control structures we have so far (common related issues in parenthesis):
- while ( brackets, infinites)
- do/while (semicolon syntax)
- for (advanced for)
- if/else (dangling else) (compound booleans, && and ||)
- switch (break)
Static - Section 8.7
Here is an example program to help explain static.
Driver
StaticClass
Imp answer for the lab