Java 9 – Improved JavaDocs

Java documentation can be generated using javadoc tool. It currently generates documentation in html 4.0 format. In java 9, we can generate documentation in html 5 format by using -html5 option in command line arguments….

Java 9 – REPL (JShell)

REPL stands for Read-Eval-Print Loop. With JShell, java has REPL capability. Using REPL, we can code and test java based logic without compiling using javac and see the result of calculations directly. Running JShell Open…

Java 9 – Module System

Java 9, a new kind of programming component called module has been introduced. A module is a self-describing collection of code and data and has a name to identify it. Features With the Modules component,…

Find the second largest number in Array

In this tutorial you will learn how to write a Java program to find the second largest number in an array. Below is the approach we will take to write our program: In this program…

Drools with Decision Table

In previous post we implemented a drools project for a mobile shop to give discount according to the type of mobile model. The rules for this discount calculations we had written in a drl file. In this…

Drools with DRL

Consider a Mobile shop which needs to maintain business logic of calculating discount based on the type of mobile model. This can be done in our Java Code. But such rules may change daily and…

Find the largest and smallest number in Array

In this tutorial you will learn how to write a Java program to find the largest and smallest number in an array. Below is the approach we will take to write our program: First, we…