Java: Parallel Functional Programming

Photo by Tomas Sobek on Unsplash
String[] nameArray = {"Barbara","James","Mary"};
String omit = "James";
for(String line: nameArray){
if(!omit.equals(line))
System.out.println(line);
}
Stream.of(nameArray)
.filter(Predicate.not(omit::equals))
.forEach(System.out::println);

Key Functional Programming Concepts & Features

Pure Functions

First-class citizens

Collection pipelines

Combining Object-Oriented & Functional Programming

--

--

--

Sometimes A software Engineer, sometimes a support engineer, sometimes a devops engineer, sometimes a cloud engineer :D That’s how the this life goes!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

MySQL Security — Random Password Generation

MySQL Security — Random Password Generation

Unity Fundamentals — Building and Testing your Games

Leetcode: Lowest Common Ancestor of a Binary Tree

Scalability, An Apple Seller Story.

🤖 These GitHub Bots that will increase your productivity

Web Scraping for Data Collection

Why is my z-index not working?

58. Length of Last Word

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nuwan Zen

Nuwan Zen

Sometimes A software Engineer, sometimes a support engineer, sometimes a devops engineer, sometimes a cloud engineer :D That’s how the this life goes!

More from Medium

Not stagnation, but regression of Java. Where modern Java 17 loses to Java 8

Reactive programming: principles, standards, implementation in Java

Reactive Programming with Spring WebFlux

Avoid Explicit Null Checks