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

Image may be NSFW.
Clik here to view.

Method Handles in Java

1. Introduction In this article, we’re going to explore an important API that was introduced in Java 7 and enhanced in the following versions, the java.lang.invoke.MethodHandles. In particular, we’ll...

View Article


Image may be NSFW.
Clik here to view.

JDBC with Groovy

1. Introduction In this article, we’re going to look at how to query relational databases with JDBC, using idiomatic Groovy. JDBC, while relatively low-level, is the foundation of most ORMs and other...

View Article


Image may be NSFW.
Clik here to view.

An MVC Example with Servlets and JSP

1. Overview In this quick article, we’ll create a small web application that implements the Model View Controller (MVC) design pattern, using basic Servlets and JSPs. We’ll explore a little bit about...

View Article

Image may be NSFW.
Clik here to view.

Guide to Inheritance in Java

1. Overview One of the core principles of Object Oriented Programming – inheritance – enables us to reuse existing code or extend an existing type. Simply put, in Java, a class can inherit another...

View Article

Image may be NSFW.
Clik here to view.

An Intro to Spring Cloud Contract

1. Introduction Spring Cloud Contract is a project that, simply put, helps us write Consumer-Driven Contracts (CDC). This ensures the contract between a Producer and a Consumer, in a distributed...

View Article


Image may be NSFW.
Clik here to view.

How to TDD a List Implementation in Java

1. Overview In this tutorial, we’ll walk through a custom List implementation using the Test-Driven Development (TDD) process. This is not an intro to TDD, so we’re assuming you already have some...

View Article

Image may be NSFW.
Clik here to view.

Multi-Swarm Optimization Algorithm in Java

1. Introduction In this article, we’ll take a look at a Multi-swarm optimization algorithm. Like other algorithms of the same class, its purpose is to find the best solution to a problem by maximizing...

View Article

Image may be NSFW.
Clik here to view.

Jersey Filters and Interceptors

  1. Introduction In this article, we’re going to explain how filters and interceptors work in the Jersey framework, as well as the main differences between these. We’ll use Jersey 2 here, and we’ll...

View Article


Image may be NSFW.
Clik here to view.

Security In Spring Integration

1. Introduction In this article, we’ll focus on how we can use Spring Integration and Spring Security together in an integration flow. Therefore, we’ll set up a simple secured message flow to...

View Article


Image may be NSFW.
Clik here to view.

ASCII Art in Java

1. Overview In this article, we’ll discuss creating a graphical print of ASCII characters or Strings in Java, using concepts from the 2D graphics support of the language. 2. Drawing Strings with 2D...

View Article

Image may be NSFW.
Clik here to view.

RxJava StringObservable

1. Introduction to StringObservable Working with String sequences in RxJava may be challenging; luckily RxJavaString provides us with all necessary utilities. In this article, we’ll cover...

View Article

Image may be NSFW.
Clik here to view.

A Custom Task in Gradle

1. Overview In this article, we’ll cover how to create a custom task in Gradle. We’ll show a new task definition using a build script or a custom task type. For the introduction to the Gradle, please...

View Article

Image may be NSFW.
Clik here to view.

Introduction to JSON-Java (org.json)

1. Introduction to JSON-Java JSON (an acronym for JavaScript Object Notation) is a lightweight data-interchange format and is most commonly used for client-server communication. It’s both easy to...

View Article


Image may be NSFW.
Clik here to view.

Kotlin Dependency Injection with Kodein

1. Overview In this article, we’ll introduce Kodein — a pure Kotlin dependency injection (DI) framework — and compare it with other popular DI frameworks. 2. Dependency First, let’s add the Kodein...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 219

Let’s jump right in… 1. Spring and Java >> Monitor your Java application with Datadog  Optimize performance with end-to-end tracing and out-of-the-box support for popular Java frameworks,...

View Article


Image may be NSFW.
Clik here to view.

Using Hamcrest Number Matchers

1. Overview Hamcrest provides static matchers to help make unit test assertions simpler and more legible. You can get started exploring some of the available matchers here. In this article, we’ll dive...

View Article

Image may be NSFW.
Clik here to view.

Injecting Prototype Beans into a Singleton Instance in Spring

1. Overview In this quick article, we’re going to show different approaches of injecting prototype beans into a singleton instance. We’ll discuss the use cases and the advantages/disadvantages of each...

View Article


Image may be NSFW.
Clik here to view.

Introduction to OpenCSV

1. Introduction This quick article introduces OpenCSV 4, a fantastic library for writing, reading, serializing, deserializing, and/or parsing .csv files! Below, we’ll go through several examples...

View Article

Image may be NSFW.
Clik here to view.

Working with JSON in Groovy

1. Introduction In this article, we’re going to describe and see examples of how to work with JSON in a Groovy application. First of all, to get the examples of this article up and running, we need to...

View Article

Image may be NSFW.
Clik here to view.

Content Analysis with Apache Tika

1. Overview Apache Tika is a toolkit for extracting content and metadata from various types of documents, such as Word, Excel, and PDF or even multimedia files like JPEG and MP4. All text-based and...

View Article
Browsing all 3610 articles
Browse latest View live


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