Finding Greatest Common Divisor in Java 1. Overview In mathematics, the GCD of two integers, which are non-zero, is the largest positive integer that divides each of the integers evenly. In this tutorial, we’ll look at three approaches to find the Greatest Common Divisor (GCD) of two integers. Further, we’ll… Continue Reading java-greatest-common-divisor

Apache Maven Standard Directory Layout 1. Introduction Apache Maven is one of the most popular build tools for Java projects. Apart from just decentralizing dependencies and repositories, promoting a uniform directory structure across projects is also one of its important aspects. In this quick article, we’ll explore the standard directory… Continue Reading maven-directory-structure

Gradle: build.gradle vs. settings.gradle vs. gradle.properties 1. Overview In this article, we’ll look at the different configuration files of a Gradle Java project. Also, we’ll see the details of an actual build. You can check this article for a general introduction to Gradle. 2. build.gradle Let’s assume that we’re just creating a… Continue Reading gradle-build-settings-properties

Refactoring in Eclipse DevOps Eclipse 1. Overview On refactoring.com, we read that “refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.” Typically, we might want to rename variables or methods, or we may want to make our code… Continue Reading eclipse-refactoring

Authenticating with Reddit OAuth2 and Spring Security 1. Overview In this tutorial, we’ll use Spring Security OAuth to authenticate with the Reddit API. 2. Maven Configuration First, in order to use Spring Security OAuth – we need to add the following dependency to our pom.xml (of course along any other… Continue Reading spring-security-oauth2-authentication-with-reddit