Author Archive


Tutorial – Spring Boot Application Development Using STS

Spring Boot is a framework/tool suite for building spring based web applications. It has a set of tools for quick development/deployment of spring based applications. Using a set of default conventions it enables developers to quickly develop apps with very little configuration. It even has an embedded tomcat web server for quickly running applications as […]

How to Create Checksum Value in Java

A checksum is a small sized data created from a larger data set using an algorithm. If there is even a single change in the larger data set, the algorithm will create a different checksum value. This property can be used to verify the integrity of data. For example, you can host a large download […]

How to Use Java to Get a List of Running Processes in Linux

In linux, the ps command can be used to get a list of running processes. Type the following command in a linux console. ps -e -o command The above command prints all running processes including the processes owned by other users (as specified by the -e option). The -o command flag instructs ps to show […]

How to Use CommandLineRunner in Spring Boot Application

CommandLineRunner is a simple spring boot interface with a run method. The run method of all beans implementing the CommandLineRunner interface will be called automatically by the spring boot system after the initial boot. To see CommandLineRunner in action, just add the following class to your existing Spring Boot Application. When you run your application, […]

How to Check Even or Odd in Java

The following sample Java program shows how the modulus operator in Java can be used to check whether a given number is even or odd. The following program reads a number from the console using the Scanner class and System.in input stream, import java.util.Scanner; // Java program to check whether a number is even or […]