Variable Parameters: Episode 214.
Static import: StaticImport,
When a class method of the same name, to specify a particular package name.
When the method of the same name, or an object comprising the specified class belongs.
import java.util.*; import static java.util.Arrays.*; import static java.lang.System.*; public class Practice_1 { public static <K, V> void main(String[] args) { int[] arr = {3,1,5}; sort(arr); int index = binarySearch(arr,1); out.println(Arrays.toString(arr)); // Object中也有 toString 方法 System.out.println("Index="+index); } }