Java Libraries

Find all tutorials posted in HowToDoInJava.com on topics related to open source popular java libraries.

Related Tags

Tutorials

JMH – Java Microbenchmark Harness

Java Microbenchmark Harness (JMH) is a tool that allows measuring various code performance characteristics and identifying bottlenecks with precision – up to the method level.

XmlUnit Tutorial with Examples

In XmlUnit 2.x tutorial, learn to create different XML sources, normalizing with decorators and comparing for identical, similar and XPaths.

Guide to JSONassert (with Examples)

Learn to write test result assertions using the JSONassert with easy-to-understand examples. We can use this tutorial as JSONassert cookbook for quick reference.

Creating a Web Scrapper in Java

Learned to create a web scrapper in Java. This demo application introduces various components needed to create a working web scrapper.

REST API Testing with REST-assured

Learn to use REST-assured library to write automated tests for REST API testing with examples, specially useful in BDD style development.

Guide to Mock APIs with WireMock

The microservices architecture allows us to develop, test and deploy different components of an application independently. Though such a component can be developed independently, testing this in isolation can be challenging. For a true integration testing of a microservice, we must test its interaction with other APIs. WireMock helps in …

Java Fluent Logging with Flogger

Flogger, developed, used and recommended by Google, is a fluent style logging API for Java. Apart from fluency, flogger offers many more other features than existing logging frameworks that we will learn in this tutorial. 1. Flogger Dependencies Flogger, similar to SLF4J, acts as an abstraction and uses the underlying …

JMeter tutorial

Learn to perform load and performance testing for a web application in this step by step JMeter tutorial. This Jmeter example is intended for beginners who are trying to use the Jmeter for the first time.

Dozer bean mapping example

Dozer bean mapping example. Learn dozer for mapping nested object, use Spring bean mapping builder, dozer custom converters to copy data between beans.

JSON.simple – Read and Write JSON

JSON.simple is lightweight JSON processing library which can be used to read JSON, write JSON file. Produced JSON will be in full compliance with JSON specification (RFC4627).

RxJava Tutorial

RxJava 2.0 is open source extension to java for asynchronous programming by NetFlix. It is much closer to functional programming as seen in java 8 lambda expressions. The basic building blocks of reactive code are Observables and Subscribers. An Observable emits items; a Subscriber consumes those items.

Java – Read and Write PDF with iText

In this iText tutorial, we are writing various code examples to read a PDF file and write a PDF file. iText library helps in dynamically generating the .pdf files from Java applications. The given code examples are categorized into multiple sections based on the functionality they achieve. With each example, …

Apache POI: Read and Write Excel File

Learn to read and write excel files in Java using Apache POI library – with examples. Learn to add and evaluate formula cells and add color formatting also.

Java Override toString() with ToStringBuilder

ToStringBuilder is a utility class provided by apache commons lang library. ToStringBuilder is a utility class provided by apache commons lang library. It provides a consistent and better control over what and how much data, an object should expose using toString() method and in which format. It can also help …

Apache HttpClient Examples for Consuming REST APIs

Apache HttpClient simplifies the interactions with RESTful APIs by supporting various HTTP methods, headers, and request configurations. This article will explore how to consume REST APIs using Apache HttpClient5 with examples. 1. Setup Before diving into implementation, we need to import the latest version of Apache HttpClient. Next, we will …

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.