Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Java
10.4k+ articles
Difference Between
3.9k+ articles
Java Programs
2k+ articles
Java-Collections
1.1k+ articles
Java-HashMap
140+ articles
java-hashset
79 articles
java-TreeMap
74 articles
Java-List-Programs
55 articles
java-map
39 articles
Java-Map-Programs
20 posts
Popular Articles
Recent Articles
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
...read more
Java
Java-Collections
java-map
Java-Map-Programs
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
...read more
Java
java-map
Java-Map-Programs
Sort elements by frequency | Set 5 (using Java Map)
Last Updated: 01 February 2023
Given an integer array, sort the array according to the frequency of elements in decreasing order, if the frequency of two elements are same
...read more
Arrays
Java
Analysis of Algorithms
Sorting
Hash
Advanced Data Structure
Technical Scripter
Technical Scripter 2018
Java-Map-Programs
DSA
Similar Topics
DSA
22.3k+ articles
Java
10.4k+ articles
Difference Between
3.9k+ articles
Java Programs
2k+ articles
Java-Collections
1.1k+ articles
Java-HashMap
140+ articles
java-hashset
79+ articles
java-TreeMap
74+ articles
Java-List-Programs
55+ articles
java-map
39+ articles
Using TreeMap to sort User-defined Objects in Java
Last Updated: 11 December 2018
Given example shows how to sort user defined objects TreeMap, you can sort the keys based on the logic provided inside the method.Given a re
...read more
Java
java-TreeMap
Java-Map-Programs
Program to Convert HashMap to TreeMap in Java
Last Updated: 01 October 2021
HashMap is a part of Java’s collection since Java 1.2. It provides the basic implementation of Map interface of Java which stores the data
...read more
Java
Java - util package
Java Programs
Java-HashMap
java-TreeMap
Java-Map-Programs
First
1
2
First
1
2
First
1
2
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 !