给定一个数组和一个数,找出给定数字是数组中哪两个数之和,返回所找数字的下标,可用hashmap import java.util.*; public class Solution { /** * @param numbers int整型一维数组 * @param target int整型 * @return int整型一维数组 */ public int[] twoSum (int[] numbers, int target) { int[] result=new int[2]; //定义一个存放结果的数组 Map<Integer,Integer> m=new HashMap();...