Depth First Search in Java 1. Overview In this tutorial, we’ll explore the Depth-first search in Java. Depth-first search (DFS) is a traversal algorithm used for both Tree and Graph data structures. The depth-first search goes deep in each branch before moving to explore another branch. In the next sections, we’ll… Continue Reading java-depth-first-search

Get Started with Java Java is one of the most popular programming languages, often used for building web and enterprise scale applications. This collection of tutorials will help you get started with the basic concepts in Java. Java Language Basics Before learning about classes and objects, let’s start with the… Continue Reading get-started-with-java-series

Querying Couchbase with MapReduce Views 1. Overview In this tutorial, we will introduce some simple MapReduce views and demonstrate how to query them using the Couchbase Java SDK. 2. Maven Dependency To work with Couchbase in a Maven project, import the Couchbase SDK into your pom.xml: <dependency> <groupId>com.couchbase.client</groupId> <artifactId>java-client</artifactId> <version>2.4.0</version>… Continue Reading couchbase-query-mapreduce-view

Guide to java.util.Formatter 1. Overview In this article, we’ll discuss the String formatting in Java using the java.util.Formatter class, which provides support for the layout justification and alignment. 2. How to Use the Formatter Remember C’s printf? Formatting a String in Java feels very similar. The format() method of the… Continue Reading java-string-formatter

Serenity BDD with Spring and JBehave 1. Introduction Previously, we have introduced the Serenity BDD framework. In this article, we’ll introduce how to integrate Serenity BDD with Spring. 2. Maven Dependency To enable Serenity in our Spring project, we need to add serenity-core and serenity-spring to the pom.xml: <dependency> <groupId>net.serenity-bdd</groupId>… Continue Reading serenity-spring-jbehave