离大谱解法,单独处理多对的情况 import java.util.*; public class Solution { public ArrayList<Integer> FindNumbersWithSum(int [] array,int sum) { int n = array.length; ArrayList<Integer> ans = new ArrayList<Integer>(); Map<Integer,Integer> map = new HashMap<>...