package javadsa;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Map hm=new HashMap();
String apple = hm.put(1, "Apple");
String banana = hm.put(2, "Banana");
String avocado = hm.put(3, "Avocado");
String replacedFruit = hm.put(3, "Mango");
System.out.println(apple);
System.out.println(banana);
System.out.println(avocado);
System.out.println(replacedFruit);
}
}