Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Java Programs
2.0K+ articles
Java - util package
1.6K+ articles
Java-Collections
1.1K+ articles
Java-HashMap
159+ articles
java-stream
142+ articles
Java-Map-Programs
21+ articles
java-map
40 posts
Recent Articles
Popular Articles
How to find the Entry with largest Key in a Java Map
Last Updated: 19 July 2022
Given a map in Java, the task is to find out the entry in this map with the highest key. Examples:Input: Map = {ABC = 10, DEF = 30, XYZ = 20}Output: XYZ = 20Input: Map = {...
read more
Java
java-map
Java-Map-Programs
Minimum distance between any two equal elements in an Array
Last Updated: 20 April 2023
Given an array arr, the task is to find the minimum distance between any two same elements in the array. If no such element is found, return -1.Examples:Input: arr = {1, 2...
read more
DSA
Arrays
cpp-map
Java-HashMap
java-map
How to convert a Stream into a Map in Java
Last Updated: 21 June 2020
Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods which can be pipelined to p...
read more
Java
Java Programs
java-stream
java-map
Java-Stream-Collectors
Java 8
Java-Collectors
Map Values() Method in Java With Examples
Last Updated: 10 September 2020
Map Values() method returns the Collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collec...
read more
Java
Java-Collections
Java-Functions
java-map
Map size() Method in Java With Examples
Last Updated: 02 June 2023
Map size() method in Java is used to get the total number entries i.e, key-value pair. So this method is useful when you want total entries present on the map. If the map ...
read more
Java
Java-Collections
java-map
Java-Map-Programs
Difference between List, Set and Map in Java
Last Updated: 27 September 2021
List interface in Java is a sub-interface of the Java collections interface. It contains the index-based methods to insert, update, delete, and search the elements. It can...
read more
Java
Difference Between
Java-Collections
java-set
java-list
java-map
Java Program to Copy the Map Content to Another Hashtable
Last Updated: 28 December 2020
HashMap and Hashtable are used to store data in key and value form using a hashing technique to store unique keys. To copy Map content to another Hashtable in Java putAll(...
read more
Java
Java Programs
Picked
java-map
Java-HashTable
How to Copy Map Content to Another Hashtable in Java?
Last Updated: 07 January 2021
The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value. To successfully store and retrieve objects ...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Collections
java-map
Java-HashTable
Difference Between Hashtable and Synchronized Map in Java
Last Updated: 22 February 2021
The Hashtable class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value. To successfully store and retrieve objects ...
read more
Java
Technical Scripter
Difference Between
Picked
Technical Scripter 2020
Java-Collections
java-map
Java-HashTable
Difference Between keySet() vs value() Method in Java Map
Last Updated: 07 March 2022
Map Interface is present in Java.util package, which provides mainly three methods KeySet(),entrySet() and values(). These methods are used to retrieve the keys of the map...
read more
Java
Technical Scripter
Difference Between
Picked
Technical Scripter 2020
Java-Collections
java-map
Difference Between value() vs entrySet() Method in Java Map
Last Updated: 27 January 2022
Map Interface is present in Java.util package, which provides mainly three methods KeySet(),entrySet() and values(). These methods are used to retrieve the keys of the map...
read more
Java
Technical Scripter
Difference Between
Picked
Technical Scripter 2020
Java-Collections
java-map
Difference Between keySet() and entrySet() Method in Java Map
Last Updated: 02 June 2022
Map Interface is present in Java.util package, which provides mainly three methods KeySet(),entrySet() and values(). These methods are used to retrieve the keys of the map...
read more
Java
Technical Scripter
Difference Between
Picked
Technical Scripter 2020
Java-Collections
java-map
How to Convert Map to JSON to HashMap in Java?
Last Updated: 04 August 2022
JSON is an open standard file format, and easier data interchange format helpful for humans to transmit data. Most of the apps display JSON data and hence nowadays JSON ha...
read more
Java
Picked
How To
Java-HashMap
JSON
java-map
Set of Maps in C++
Last Updated: 05 February 2024
In C++, Sets are containers that allow the users to store unique elements in sorted order while maps containers store key-value pairs in sorted order based on the keys. In...
read more
C++ Programs
C++
Picked
STL
cpp-set
java-map
CPP Examples
Java Collection Exercise
Last Updated: 12 March 2024
The Java Collection framework is a fundamental part of the Java programming language, It covers a major part of Java and acts as a prerequisite for many Advanced Java Topi...
read more
Java
Java Programs
Java-Collections
Java-ArrayList
Java-HashMap
java-priority-queue
java-hashset
java-set
java-queue
java-map
Java-Collection-Programs
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !