Java67

10 Examples of Stream API in Java 8 - count + filter + map + distinct + collect() Examples

›
The Java 8 release of Java Programming language was a game-changer version. It not only provided some useful methods but totally changed t...
10 comments:

How to debug Java 8 Stream Pipeline - peek() method Example Tutorial

›
Hello guys, I have been writing about some important methods from Java SE 8  like  map() , flatMap() , collect() , etc for quite some time, ...
3 comments:

How to convert ArrayList to HashMap and LinkedHashMap in Java 8 - Example Tutorial

›
One of the common tasks in Java is to convert a List of objects, like a  List<T> into a Map, I mean  Map<K, V> , where K is so...
5 comments:

Java 8 Stream map() function Example with Explanation

›
The map is a well-known functional programming concept that is incorporated into Java 8. Map is a function defined in java.util.stream.Str...
7 comments:

How to Convert a Comma Separated String to an ArrayList in Java - Example Tutorial

›
Suppose you have a comma-separated list of String e.g. "Samsung, Apple, Sony, Google, Microsoft, Amazon" and you want to convert ...
5 comments:

How to create and initialize List or ArrayList in one line in Java? Example

›
creating and initializing List at the same time Sometimes we want to create and initialize a List like ArrayList or LinkedList in one ...
3 comments:

How to Order and Sort Objects in Java? Comparator and Comparable Example

›
Java Object Sorting Example How do you sort a list of Objects in Java is one of the frequently asked coding questions in Java interviews...
25 comments:

ArrayList vs Vector in Java? Interview Question Answer

›
ArrayList vs Vector in Java ArrayList and Vector are the two most widely used Collection classes in Java and are used to store objects in ...
10 comments:

How to Search an Element in Java Array with Example? ArrayUtils Tutorial

›
find an index of the object in Array While programming in Java, many times we need to check if a String array contains a particular Str...
2 comments:

How to use Deque Data Structure in Java? Example Tutorial

›
Hello friends, I am really glad to see you all again here. And I know you are here to learn new and valuable Java concepts and continue your...

Java ArrayList Tutorials and Examples for Beginners (with Java ArrayList Cheat Sheet)

›
Hello guys, if you want to learn ArrayList in-depth and looking for a complete guide on ArrayList then you have come to the right place. Ear...
2 comments:

10 Examples of Comparator, Comparable, and Sorting in Java 8

›
Hello guys, the Comparator class is used to provide code or logic for comparing objects in Java, while sorting a list of objects or a collec...
1 comment:

How to shuffle a List in Java? Collections.shuffle() Example

›
Hello guys, if you have a List of numbers and you want to shuff it but don't know how then you have come to the right place. Shuffling ...

Difference between HashSet and HashMap in Java? Answered

›
HashSet and HashMap in Java Hello friends, if you have given Java developer interview then there is good chance that you may have come acro...
6 comments:

How to sort ArrayList in Java? Examples

›
Hello Java programmers, sorting ArrayList in Java is not difficult; there are multiple ways to sort a given ArrayList in Java. For example y...
3 comments:

How to replace an element of ArrayList in Java? Example

›
You can use the set() method of java.util.ArrayList class to replace an existing element of ArrayList in Java. The set(int index, E eleme...
8 comments:

Difference between ArrayList and HashSet in Java? Answer with Example

›
ArrayList vs HashSet Java The main difference between ArrayList and HashSet is that one is a List implementation while the other is ...
9 comments:

Difference between Queue and Deque in Java? Example Tutorial

›
Hello guys, today I am going to share another interesting question from Java interview, what is difference between Queue and Deque in Java. ...

How to find length/size of ArrayList in Java? Example

›
You can use the size() method of java.util.ArrayList to find the length or size of ArrayList in Java. The size() method returns an integ...

How to remove all elements of ArrayList in Java - RemoveAll Example

›
There are two ways to remove all elements of an ArrayList in Java, either by using clear() or by using the  removeAll() method.  Both met...
›
Home
View web version