Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. java.util

Tag: java.util

java August 23, 2016 2 min read by Datsabk 2 comments

Java – ResourceBundle example

The java.util.ResourceBundle is a library used for internationalization (multiple languages). It is able to return messages as per the default Locale configured for the system. Such a functionality is used when one develops systems to be used all over the world. 1. How it works? The library reads a property file based on the locale and name […]

Read more Java – ResourceBundle example
java8 February 23, 2016 3 min read by mkyong 2 comments

Java 8 Map filter examples

This article shows a few examples of filtering a Map by its keys or values using the Java 8 stream APIs. Table of contents: 1. Java Map filter (Classic) 2. Java Map filter (Java 8) 3. Java Map filter (Java 8 Predicate) 4. References 1. Java Map filter (Classic) Before Java 8, we looped the […]

Read more Java 8 Map filter examples
java June 25, 2010 4 min read by mkyong 0 comments

How to loop Map in Java

This article show few ways of loop Map in Java. 1. Using entrySet() 2. Using forEach (Java 8 and later) 3. Using stream() (Java 8 and later) 4. Using iterator() 5. Using keySet() and get() 6. References 1. Using `entrySet()` Before Java 8, this is the most common method to loop a Map in Java. […]

Read more How to loop Map in Java

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use

© 2026 mkyong.com — Powered by WordPress

RSS