When you learn Java, the name of the case is often confused, so summarize the Java naming convention here
1.project (project name)
Eg:arraytest, tentative lowercase,
2. Package Name
lowercase, eg:package arrayapp;
can also be divided into partial names, domain name beginning, eg:com.frontfree.javagroup;
3. Class Name/Interface name
Capital letter, Eg:public class arrayapp{}
4. Method name
First letter lowercase, other words capitalized, eg:public void GetName () {}
In general, the Get method is prefixed with GET, eg:getname ();
Boolean type, prefixed with IS, eg:isempty ();
The setting method of the class, prefixed with Set, Eg:setname ();
5. Variable name
First letter lowercase, eg:int nelems=0;
To differentiate between data types, it is recommended to set this type to strClassName, which indicates that the variable is of type str
6. Constant name/static variable
static int Thread_flag
public static final String game_color= "RED";
Java naming default specification