How do I obtain elements in an ArrayList using indexes? How do I convert a map into a JSON string? How do I obtain the class name of an object? How do I delete an element from a record? How do I convert a JSON object into a HashMap? How do I convert an ArrayBuffer to...
To retrieve mapped id from the object and vice-versa, we store both sides of mapping. Using our example, we store both(“MANGO” -> 2)and(2 -> “MANGO”). As the mapping of numbers started from zero, so for the reverse map there we can use a simple array to retrieve the respecti...