Java
-
State Pattern
Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.…
Read More » -
Memento Pattern
Without violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state…
Read More » -
Inline array definition in Java
There are occasion when it is more convenient to create an array inline. Here are several way to declare and…
Read More » -
Solve the facility location problem
We have created a new quickstart that extends OptaPlanner use case portfolio with the facility location problem and also demonstrates…
Read More » -
Kicking the Tires of Jakarta EE 9 with Payara
We’ve been hearing all about it. Jakarta EE 9 will be released in November 2020. The Jakarta EE working group…
Read More » -
Java Based Akka application Part 1: Your base Project
Akka is a free, open-source toolkit and runtime for building highly concurrent, distributed, and resilient message-driven applications on the JVM.…
Read More » -
Start a Java app without installing it
This article describes how you can use JShell to download and execute a Java application. It will eliminate the need…
Read More » -
Run method on Spring Boot startup
While developing a spring boot application, sometimes we need to run a method or a piece of code at startup. This…
Read More » -
AWS CodeBuild Error: Unable to access jarfile
Using AWS CodeBuild, I was using a buildspec that was to run an executable JAR file to execute JUnit tests.…
Read More »