Author Archive


Java Asymmetric Encryption Decryption Example with RSA

Asymmetric encryption is a strong encryption technique which uses a key pair. The key pair consists  of a public key and a private key. Data or message encrypted using the private key can only be decrypted using the public key and vice versa. Many internet protocols and secure processes use asymmetric key encryption. For example […]

Display Google Analytics Real time Users in Console Using Java

This is a step by step tutorial on accessing Google Analytics Real time API from Java. The sample code below prints the real time users on a Website using Google analytics real time API. This display is updated every minute on the console. This code is useful if you are building any kind of real […]

How to Develop JavaFX Programs Using Eclipse and Gradle

JavaFX is an excellent framework for building cross platform rich client applications in Java. Since JDK 7, JavaFX is bundled with the JDK distribution. The latest version of the framework (JavaFX 8) is available as part of the Java 8 distribution. I recommend that you update your Java 8 installation to the latest version so […]

Pregnancy Due Date Calculator in Java

There are number of ways to calculate pregnancy due date. The most common way is to add 280 days to the first day of the last menstrual period. For example, if the first day of last menstrual period is 10th February 2017, the estimated delivery date is 17th November 2017. Note that pregnancy due dates […]

How to Use Spring Boot CLI

Spring boot cli is a command line tool available as part of the spring boot framework. This tool can be used to quickly create and run spring boot applications. Using spring boot cli you can, Run spring controllers written in groovy directly on embedded tomcat server. Package spring controllers written in groovy as a standalone […]