+ All Categories
Transcript

Anatomy of a Program

Anatomy of a ProgramCIT 270Java Programming

Class name must match file name in spelling and capitalizationClass names should start with a capital letter, no spaces (if youre using more than one word, capitalize the beginning of each word).Headers have to be followed by a brace. Closing braces should match opening braces in vertical alignment

Methods are created by the programmer or created by JavaAll method names begin with a lowercase letterMethod names are followed by parenthesesInside the parentheses are the arguments or stuff that the method needs in order to do its job.

All coding lines (other than headers and comments) need a semicolon at the end;Java applications that you plan to run, or execute, must have a main() method


Top Related