Java Programming Tutorials

Java programming tutorials with many code examples!

Create Java Streams

There are many ways to create Java Streams and for each of them we’ll show examples. This flexibility is needed especially when combined with flatMap!

Read More

Share with the World!

Java 8 Comparators with Method References

Java 8 Comparators with Method References in action. We mix Java 8 static and default methods with method references to sort objects by multiple fields using chained Comparators!

Read More

Share with the World!

Java regex matching IP Address

A pretty cool exercise in writing Java Regular Expressions is to write Java regex matching IP Address. In this post we’ll show IP regexp and use in IP Address validator.

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!
Pages:123456