How to print current project classpath

Imagine you want to figure out what is the path to your Java compiled classes. For that, you will need to print the classpath. This article is a short explanation of a classpath and a single line of Java code that will help you print out your classpath.

Continue reading

Posted in Tips & tricks | Tagged , , | Leave a comment

How to calculate median from an array in Java

In this short article, we will see how to compute median in Java.

Continue reading

Posted in Computer Science | Tagged , , , , | Leave a comment

How to set custom configuration for your local Git project repository

Suppose you do not want to have the same configuration for your local repository as you have your global Git settings. Or you need to fix identity information for commits that are already made in Git commit history. In that case, this article will show you a few Git commands on how to set up the custom configuration for your local Git repository or how to fix past mistakes.

Continue reading

Posted in Tips & tricks | Tagged , , , | Leave a comment

Verify method was called n-times with Mockito

This short article will explain how to verify that Mock’ method was called n-times with the help of Mockito testing framework.

Continue reading

Posted in Testing | Tagged , , , | Leave a comment

How to check if two lists are equal in Java

This short article will explain to you what List equality means and how to compare two Java lists against each other.

Continue reading

Posted in Testing | Tagged , , , , | Leave a comment

How to convert a Map to an Array in Java

This tutorial is about several approaches to converting Java’s Map interface implementations into the Java array.

Continue reading

Posted in Language basics | Tagged , , , , , , , | Leave a comment

How to connect Jira with IntelliJ IDEA

For ease of development, we can connect the IntelliJ IDE with the Jira ticket service.

Continue reading

Posted in Tutorials | Tagged , , | Leave a comment

How to sort a map with Java 8

This tutorial will show how to sort Map implementations with the map’s key or value properties.

Continue reading

Posted in Tutorials | Tagged , , , , , , | Leave a comment

How to load files from Spring JUnit test resources folder

In this short tutorial we will show you how to read the files from the /src/test/resources directory path.

Continue reading

Posted in Tutorials | Tagged , , , , , , , | Leave a comment

How to initialize an array with zero values in Java

This article will look at how to fill up a Java array with default values effectively on an array creation.

Continue reading

Posted in Language basics | Tagged , , , | Leave a comment