Thursday, 12 November 2015

Camel Case in Java

Cited from "HKUSTx COMP102.1x Introduction to Java Programming - Part 1"

Lower camelCase for names of variables and methods. For example, "double areaOfCircle".

Upper CamelCase for names of classes. For example, "public class HelloWorld".

 

No comments:

Post a Comment