Java Programming Tutorials

Java programming tutorials with many code examples!

Java random integers in range

In Java random integers in range can be produced in many ways. In this post we show how to generate random numbers using Java 8 features!

Read More

Share with the World!

Java 8 range of numbers

How to generate in Java 8 range of numbers? This is practical problem, often met when writing tests. In this post we’ll cover fast implementation, comfortable, and flexible with Java 8 Streams!

Read More

Share with the World!

Java 8 count frequency of chars in String

Java interview question: In Java 8 count frequency of chars in a String. In this post we’ll show two implementations – using Map.merge() and Streams and Collectors.

Read More

Share with the World!

Java 8 List to Map

Very common task is creation of Map from a List of objects. In this post we show how to use Java 8 to convert List to Map using Collectors.

Read More

Share with the World!

Java 8 forEach examples

In this article we present Java 8 forEach on examples. These are very convenient methods for use with Lambda Expressions and method references.

Read More

Share with the World!

Java Fork Join example

In Java Fork Join Framework takes advantage of multiple processors to process divide and conquer algorithms with full power. In this post we’ll show how to start with Fork Join processing.

Read More

Share with the World!

Java int to String

In Java int to String conversion can be done in a different ways and converted String can be in different formats. In this post we’ll show on examples how to convert them.

Read More

Share with the World!

Java 8 reduce by example

Java 8 reduce is a great method to compute a value from stream of values – reduce collection to value. In this post we’ll explain how reduce in Java work.

Read More

Share with the World!

Java Util Optional map(Function)

java.util.Optional.map(Function)

The method Optional.map(Function) applies the given function to the optional value if it is present and returns an optional with the result or empty optional.

Read More

Share with the World!
Pages:1234