第二题:代码为:import java.util.HashMap;import java.util.Scanner;public class TestMain { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n =Integer.parseInt(scanner.nextLine()) ; String a[] =scanner.nextLine().split(" "); String b[] =scanner.nextLin...