public class arrayfile { static Scanner sc = new Scanner(System.in);public static void main(String[] args) { Map<Integer, Integer> map = new HashMap<Integer, Integer>();for (int i = 0; i < 10; i++) { map.put(i, 0);} String s = null;while (true) { System....