1.数组---查找 2.数组--二分查找法 3.数组--二分查找法的应用
数组中 最值,查找法 返回值int . 最值:public static int 名字(int[] arr)-----数组中找元素,元素出于数组本身,返回元素
查找法: public static int 名字(int[] arr, int a) :带着要找的元素到数组中去找, 返回角标x .
数组中 最值,查找法 返回值int . 最值:public static int 名字(int[] arr)-----数组中找元素,元素出于数组本身,返回元素
查找法: public static int 名字(int[] arr, int a) :带着要找的元素到数组中去找, 返回角标x .