FormatTopBlank LinesNames

Names

You should always choose names that suggest the meanings of the things being named. If the purpose of a method is to draw a rectangle, then a good name for that method is drawRect. If there is a variable of type FilledRect that is used as the stem of a stop sign, then a good name would be stem or stemRect.

Following Java convention, constants (indicated by "static final" in Java) are all capital letters, classes begin with uppercase, variable and method names begin with lowercase, while uppercase is used to start new words in multi-word names. You are expected to follow these naming conventions to make your program readable.

Instance variables should never be declared to be public. Instance variables should only be used when a value must be saved for use after a constructor or method has been completed. Otherwise local variables should be used. Constants should always be declared at the top of the program.


FormatTopBlank LinesNames