reset password
Author Message
kknaur
Posts: 540
Posted 10:21 Feb 03, 2019 |

Be sure to follow proper naming conventions in your code.  In Java, we tend to use CamelCase (words are concatenated and the first letter of a word is capitalized depending on the item it is labeling.)

  • Variables and Method Names:
    • camelCase (start with a lowercase letter and capitalize every word after.)
    • Examples: myVariable, numberOfItems, findArrayAverage
  • Class Names:
    • CamelCase (start with an uppercase letter and capitalize every word after.)
    • Examples: MyClass, HelloWorld, Vacation
  • Constant Names:
    • ALL_CAPS_SNAKE_CASE (all letters are capitalized with words separated by underscores).
    • Examples: PI, RADIUS_OF_EARTH, DISTANCE_TO_SUN

Please follow this for all assignments as it makes your code much more readable. 

~K. Knaur