@@ -0,0 +1,794 @@
+package com.hackerrank.contests.daysOfCode_30;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Scanner;%0A%0Apublic class Day8_DictionariesAndMaps %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%0A%09%09Map%3CString, Integer%3E contactListMap = new HashMap%3CString, Integer%3E();%0A%09%09@SuppressWarnings(%22resource%22)%0A%09%09Scanner in = new Scanner(System.in);%0A%09%09int N = in.nextInt();%0A%09%09in.nextLine();%0A%09%09for (int i = 0; i %3C N; i++) %7B%0A%09%09%09String name = in.nextLine();%0A%09%09%09int phone = in.nextInt();%0A%09%09%09contactListMap.put(name, phone);%0A%09%09%09in.nextLine();%0A%09%09%7D%0A%09%09while (in.hasNext()) %7B%0A%09%09%09String s = in.nextLine();%0A%09%09%09if (contactListMap.containsKey(s)) %7B%0A%09%09%09%09System.out.println(s + %22=%22 + contactListMap.get(s));%0A%09%09%09%7D else %7B%0A%09%09%09%09System.out.println(%22Not found%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create Day8_DictionariesAndMaps.java