Summary of commonly used methods in Java work

copy array method

Arrays.copyOfRange(T[ ] original,int from,int to)

Target array, start position, end position
Copy a new array from from to to

Base conversion method

int a = Integer.parseInt("ff", 16);

The character string to be converted, the hexadecimal number to
be converted, you can convert ff hexadecimal to decimal number

Guess you like

Origin blog.csdn.net/qq_43647359/article/details/107876233