Quantcast
Channel: Baeldung
Browsing all 4632 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Evaluating H2 as a Production Database

1. Overview H2 is a very popular database solution, especially when it comes to testing. It was first introduced as an in-memory database to use in test and integration environments because it’s easy...

View Article


Image may be NSFW.
Clik here to view.

Using Apache POI to Extract Column Names From Excel

1. Introduction Handling Excel files efficiently is crucial, whether reading data for processing or generating reports. Apache POI is a powerful library in Java that allows developers to manipulate and...

View Article


Image may be NSFW.
Clik here to view.

Passing List as Cucumber Parameter

1. Introduction Cucumber is a popular tool in behavior-driven development (BDD) for writing test scenarios in plain language. Utilizing parameters in Cucumber allows for dynamic and reusable tests. In...

View Article

Image may be NSFW.
Clik here to view.

Spring Security 6.3 – What’s New

1. Introduction Spring Security version 6.3 has introduced a range of security enhancements in the framework. In this tutorial, we’ll discuss some of the most notable features, highlighting their...

View Article

Image may be NSFW.
Clik here to view.

Unescape HTML Symbols in Java

1. Overview Server-side applications sometimes require parsing of HTML characters. This is where the process of escaping/unescaping comes in helpful. In this tutorial, we’ll demonstrate a couple of...

View Article


Image may be NSFW.
Clik here to view.

Getting Arithmetic Results in the Modulo (10^9 + 7) Format

1. Overview When working with large numbers, intermediate results can exceed data type limits. For such scenarios, modular arithmetic helps keep numbers manageable and prevent overflow errors. In this...

View Article

Image may be NSFW.
Clik here to view.

Validation Using the Spring Validator Interface

1. Introduction The Spring Validator interface provides a flexible and customizable way to validate objects. In this tutorial, we’ll explore how to use the Validator interface to validate objects in a...

View Article

Image may be NSFW.
Clik here to view.

How to Select Value From Dropdown Using Selenium Webdriver

1. Introduction In this short tutorial, we’ll look at a simple example of how to select an option or a value from a dropdown element using Selenium WebDriver with Java. For testing, we’ll use JUnit and...

View Article


Image may be NSFW.
Clik here to view.

Differences Between Solr and Lucene

1. Introduction Search engines are pivotal in retrieving information quickly and efficiently in the digital age. Two prominent names in this domain are Apache Solr and Apache Lucene. These technologies...

View Article


Image may be NSFW.
Clik here to view.

Checking if an Array Is Null or Empty in Java

1. Overview In Java, manipulating arrays is a common task, which often involves checking if an array is null or empty. This is crucial for preventing NullPointerExceptions and ensuring our code behaves...

View Article

Image may be NSFW.
Clik here to view.

Fix ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer

1. Overview Java is renowned for its robustness and versatility as a programming language, yet it also presents its fair share of challenges, much like any other language. One prevalent issue that...

View Article

Image may be NSFW.
Clik here to view.

Intro to SpotBugs

1. Overview Identifying bugs in Java programs is a critical challenge in software development. SpotBugs is an open-source static analysis tool used to find bugs in Java code. It operates on Java...

View Article

Image may be NSFW.
Clik here to view.

Fixing Spring Boot H2 Exception: “Schema not found”

1. Overview H2 is an open-source SQL database often used for testing purposes in the Java community. Its in-memory nature doesn’t persist anything to the disk and that makes it very fast. We may...

View Article


Image may be NSFW.
Clik here to view.

Reducing Duplication With Spock’s Helper Methods

1. Introduction When writing tests we often assert comparisons on various attributes of an object. Spock has some useful language features that help us eliminate duplication when we compare objects. In...

View Article

Image may be NSFW.
Clik here to view.

Counting Subrrays Having a Specific Arithmetic Mean in Java

1. Overview In this short tutorial, we’ll learn how to efficiently find the number of contiguous subarrays of an array with a given arithmetic mean. We’ll start with a naive approach that computes the...

View Article


Image may be NSFW.
Clik here to view.

Getting Month Number From Its Name in Java

1. Overview When working with months in Java, we often leverage the numerical format because it helps standardize across different languages and regions as month names vary widely. In this short...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 551

1. Spring and Java >> Structured Concurrency is More Than ShutdownOnFailure [foojay.io] Going beyond shutdown on failure: throttling, circuit breaking, list conversion, default values, and...

View Article


Image may be NSFW.
Clik here to view.

Parse JSON with Manifold

1. Introduction In this article, we’re going to look at Manifold JSON for JSON Schema-aware parsing of JSON documents. We’ll see what it is, what we can do with it, and how to use it. Manifold is a...

View Article

Image may be NSFW.
Clik here to view.

Ignoring Fields During Comparison Using AssertJ

1. Introduction Ignoring fields during comparison with AssertJ is a powerful feature that helps to simplify tests by focusing only on the relevant parts of the objects. It’s beneficial when dealing...

View Article

Image may be NSFW.
Clik here to view.

Get Date and Time From a Datetime String in Java

1. Introduction Working with date and time is a common task in many Java applications. Whether for parsing input, formatting output, or manipulating dates and times within the program, Java provides...

View Article
Browsing all 4632 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>