Difference between Enumeration and Iterator interface in Java
In this post, we will explain the difference between the Enumeration and Iterator interfaces in Java, and provide some examples on how to use them.
Ace your Coding Interview
Get hired by top tech companies with our comprehensive interview preparation.
Get StartedIn this post, we will explain the difference between the Enumeration and Iterator interfaces in Java, and provide some examples on how to use them.
This post will discuss several ways in Java to check if a given string contains only alphabets or not. A null string should return false, and an empty string should return true.
This post will discuss various methods to initialize a static map in Java.
This post will discuss how to read the contents of a file using an InputStream in Java.
This post will discuss how to print out all keys with values from a properties file in Java.
This post will discuss various methods to iterate through a stack in Java.
This post will discuss how to convert a primitive character array to a string in Java.
The Google Guava libraries provide a rich set of utilities for creating mutable and immutable Maps. This article will discuss various methods to initialize a map using Guava in Java.
This post will discuss how to convert a set to stream in Java 8 and above. We will also learn how to apply a filter on a stream and convert it back to a set or list.
This post will discuss how to concatenate object arrays into a single new object array in Java.
In this post, we’ll illustrate how to filter map in Java.
This post will discuss how to concatenate multiple strings in Java using the + operator, String.concat() method, and append() method of the StringBuffer/StringBuilder class.