Java Sort List of Objects with Comparable

This tutorial shows you way to Sort List of Objects using Comparable example.

Related Post: Java Sort List of Objects with Comparator

How to do this with Kotlin: Sort List of Objects with Comparable

[Continue reading…] “Java Sort List of Objects with Comparable”

Java Sort List of Objects with Comparator

This tutorial shows you way to Sort List of Objects by implementing Comparator example.

Related Post: Java Sort List of Objects with Comparable

How to do this with Kotlin: Sort List of Objects with Comparator

[Continue reading…] “Java Sort List of Objects with Comparator”

How to quick start Activiti – a Java BPM Engine with SpringBoot

In software development, digitizing a business process is one of the toughest challenges. It’s because most processes are sophisticated and maintaining them is difficult. In that circumstance, integrating a workflow engine in application is a good solution.

Java open source Activiti comes to us as a light-weight workflow and Business Process Management (BPM) solution. In this tutorial, we’re gonna take a look at Activiti – a BPM Engine.

Related Articles:
How to start Activiti + Spring JPA with Spring Boot
Activiti REST API with Spring Boot Example
Activiti Parallel Tasks + JPA with Spring Boot Example

[Continue reading…] “How to quick start Activiti – a Java BPM Engine with SpringBoot”

Java 9 Module System

Java 9 Module System, which is developed under Project Jigsaw, comes to us with the specific goal: to provide reliable configuration and strong flexible encapsulation. That helps application developers, library developers, or Java SE Platform implementors more easilier create a scalable platform, make greater platform integrity, and improve performance. In this tutorial, we’re gonna take a look at Java 9 Module System in a summarized way.

[Continue reading…] “Java 9 Module System”

Java 9 Platform Logging API and Service

Java 9 defines a minimal logging API which platform classes can use to log messages, together with a service interface for consumers of those messages. In this tutorial, we’re gonna take a look at new Java 9 Platform Logging API and an example that implements LoggerFinder service which can route platform log messages to the logging framework for application logger instead of system logger.

[Continue reading…] “Java 9 Platform Logging API and Service”

Java 9 FLow SubmissionPublisher – A Concrete Publisher

JDK 9 provides a concrete Publisher named SubmissionPublisher that acts as a compliant Reactive Streams Publisher relying on drop handling and/or blocking for flow control. In this tutorial, we’re gonna take a look at SubmissionPublisher and an example that generates items for Subscribers.

Related Articles:
Java 9 Flow API – Reactive Streams
Java 9 Flow API example – Publisher and Subscriber
Java 9 Flow API example – Processor

[Continue reading…] “Java 9 FLow SubmissionPublisher – A Concrete Publisher”

Java 9 Flow API example – Processor

In previous post, we have general knowledge about Reactive Streams and Java 9 Flow API Components and Behaviour. In this tutorial, we’re gonna look at an example that implements Publisher, Subscriber with Processor as a bridge for reactive programming.

Related Articles:
Java 9 Flow API – Reactive Streams
Java 9 Flow API example – Publisher and Subscriber
Java 9 FLow SubmissionPublisher – A Concrete Publisher

[Continue reading…] “Java 9 Flow API example – Processor”

Java 9 Flow API example – Publisher and Subscriber

In previous post, we have general knowledge about Reactive Streams and Java 9 Flow API Components and Behaviour. In this tutorial, we’re gonna look at an example that implements Publisher and Subscriber for reactive programming.

Related Articles:
Java 9 Flow API – Reactive Streams
Java 9 Flow API example – Processor
Java 9 FLow SubmissionPublisher – A Concrete Publisher

[Continue reading…] “Java 9 Flow API example – Publisher and Subscriber”

Java 9 Flow API – Reactive Streams

Java 9 introduces Reactive Streams under java.util.concurrent.Flow that supports an interoperable publish-subscribe framework. In the tutorial, we’re gonna look at a general view of Reactive Streams and how it comes to Java 9 with some new Flow API Components.

Related Articles:
Java 9 Flow API example – Publisher and Subscriber
Java 9 Flow API example – Processor
Java 9 FLow SubmissionPublisher – A Concrete Publisher

[Continue reading…] “Java 9 Flow API – Reactive Streams”

Java 9 Unified JVM Logging

Java 9 provides a common logging system for JVM components with extremely detailed level, an infrastructure to do the logging. With new command-line option -Xlog for all logging followed settings, Unified JVM Logging gives us a precise, easy-to-configure tool to do a root cause analysis of complex system-level JVM components.

[Continue reading…] “Java 9 Unified JVM Logging”

Java 9 TIFF Image I/O plugins

In earlier version of Java, Image I/O Framework javax.imageio provides a standard way to plug-in image codecs for some formats such as PNG and JPEG. But TIFF is still missing from this set. It was packaged in com.sun.media.imageio.plugins.tiff before. Java 9 TIFF Image I/O plugins has a new package called javax.imageio.plugins.tiff which is renamed from com.sun.media.imageio.plugins.tiff.

In this article, we’re gonna take a look at that package and test a simple example.

[Continue reading…] “Java 9 TIFF Image I/O plugins”

Java 9 CompletableFuture API Improvements – Delay and Timeout Support

To improve Java Future, Java 8 provides CompletableFuture which can execute some code whenever its ready. In this article, we’re gonna take a look at new Java 9 CompletableFuture API that supports delay and timeout.

[Continue reading…] “Java 9 CompletableFuture API Improvements – Delay and Timeout Support”

Java 9 Diamond Operator for Anonymous Inner Classes

Java 7 has a new feature called Diamond Operator which helps to make code more readable, but it is still limited with Anonymous Inner Classes. In this article, JavaSampleApproach will introduce Java 9 Diamond Operator that can simplifies code and improves readability.

[Continue reading…] “Java 9 Diamond Operator for Anonymous Inner Classes”

Java 9 try-with-resources Improvement

Java 7 introduces a new approach for closing resources by try-with-resources statement. After that, Java 9 try-with-resources makes an improved way of writing code. Now we can simplify our code and keep it cleaner and clearer.

Related post: Java 7 – try-with-resources Statement

[Continue reading…] “Java 9 try-with-resources Improvement”