Quantcast
Channel: The Canny Coder » map
Browsing latest articles
Browse All 5 View Live

Image may be NSFW.
Clik here to view.

An Introduction to Functional Programming with Java 8

Java 8 is perhaps one of the most exciting editions of the Java language in recent times. One of the headline features is support for functional programming which is the focus of this blog. The support...

View Article



Image may be NSFW.
Clik here to view.

Ranges and Looping with IntStream

In the previous posts we looked at taking a container, getting it to stream its contents into a pipeline and looked at a few different operations on data in that pipeline (forEach, map, filter, peek)....

View Article

Image may be NSFW.
Clik here to view.

Generators with Java 8

Today we’ll look at creating generators. In simple terms, a generator is a function which returns the next value in a sequence. Unlike an iterator, it generates the next value when needed, rather than...

View Article

Image may be NSFW.
Clik here to view.

Finite sequence generators in Java 8

… and introducing default methods. Last time we looked at generators, and more specifically those generating an infinite sequence. We saw that there were several ways to achieve this: The older Java 7...

View Article

Image may be NSFW.
Clik here to view.

Collectors Part 2: Provided collectors and a Java 8 streams demonstration

Today we’re going to continue where the last article left off. In that one we looked at collectors, specifically reduction and short-circuiting operations. Today we’ll look at the collect function and...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images