Some java-- string constant pool manipulation functions, string functions, and the static keyword, array, Math Function

String constant pool:

 

 String comparison function:

 

 

 

 String commonly used methods:

 

 

 

 String clipping function:

 

 

 

 

 

String clipping function: 

 

 

 

 Use the static keyword:

When to call the class static variable of type, you can use "class name. Variable names," Once a variable is defined as static type variable, then he would be out of a total new class of objects and common use

 

 Static methods and static variables are the same use, should pay attention to inside static methods can not use non-static member variables

 

Static code block:

 

 Static block of code is mainly used for a static class variable initial value

 

Some function array:

 

 

 

Some math functions: 

 

Guess you like

Origin www.cnblogs.com/kongbursi-2292702937/p/11594172.html