Sophisticated Java code

A code naming

  Hump ​​nomenclature (CamelCase)

  Google defines the following conversion rules:

  1. Starts from the normal form of expression, converted into ASCII code phrases, and removes the single quotation marks. For example, "Müller's algorithm" is converted to "Muellers algorithm";

  2. If the above results contain other punctuation, such as a hyphen, this symbol, the result of this cut form into words. If a word is already a hump form, correspondingly cut separately. For example, "AdWords" cut into "ad words", "non-current assets" cut into "non current assets";

  3. All letters will be converted to lowercase, and then the first letter of each word capitalized, so get a big camel named form; if the first letter of the first word lowercase, you get a small camel named form;

  4. All the words together, is the last of the identifier name.

  

  Java naming conventions

  

 

Guess you like

Origin www.cnblogs.com/gzhcsu/p/12080025.html