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

Image may be NSFW.
Clik here to view.

Bitwise & vs Logical && Operators

1. Introduction In Java, we've got two ways to say “AND”. But which to use? In this tutorial, we'll look at the differences between & and &&. And, we'll learn about bitwise operations and...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 313

Last Java Weekly of 2019 – let's jump right in here 1. Spring and Java >> Java 14 Is in Feature-Freeze and Release Rampdown [infoq.com] Now that the release process has begun, learn which JEPs...

View Article


Image may be NSFW.
Clik here to view.

Range Search Algorithm in Java

1. Overview In this tutorial, we'll explore the concept of searching for neighbors in a two-dimensional space. Then, we'll walk through its implementation in Java. 2. One-Dimensional Search vs...

View Article

Image may be NSFW.
Clik here to view.

Kruskal’s Algorithm for Spanning Trees

1. Overview In a previous article, we introduced Prim's algorithm to find the minimum spanning trees. In this article, we'll use another approach, Kruskal’s algorithm, to solve the minimum and maximum...

View Article

Image may be NSFW.
Clik here to view.

Sending Emails with Logback

1. Overview Logback is one of the most popular logging frameworks for Java-based applications. It has built-in support for advanced filtering, archival and removal of old log files, and sending log...

View Article


Image may be NSFW.
Clik here to view.

Spring Security and OpenID Connect (Legacy)

Note that this content is outdated. Take a look at Spring Security's latest OAuth support. 1. Overview In this quick tutorial, we'll focus on setting up OpenID Connect with a Spring Security OAuth2...

View Article

Image may be NSFW.
Clik here to view.

Spring Boot – Using a Color Startup Banner

1. Introduction One of the endearing features of Spring Boot is its startup banner. Over the years, Spring Boot has evolved to support various types of banners. For example, both text and background...

View Article

Image may be NSFW.
Clik here to view.

Branch Prediction in Java

1. Introduction Branch Prediction is an interesting concept in computer science and can have a profound impact on the performance of our applications. Yet it's generally not well understood and most...

View Article


Image may be NSFW.
Clik here to view.

The Difference between var in Kotlin and Java 10

1. Introduction In this short tutorial, we’ll cover differences between var keywords in Java and Kotlin. We cover the identifier var in Java in more depth in our article Java 10 LocalVariable...

View Article


Image may be NSFW.
Clik here to view.

Arrays.sort vs Arrays.parallelSort

1. Overview We've all used Arrays.sort() to sort an array of objects or primitives. In JDK 8, creators enhanced the API to provide a new method: Arrays.parallelSort(). In this tutorial, we'll draw a...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 314

Welcome to 2020 1. Spring and Java >> New Classes in Java 11 [blog.code-cop.org] A categorized list of classes added in Java 11 as well as those that were removed. >> Prototyping with...

View Article

Image may be NSFW.
Clik here to view.

Guide to the Java finally Keyword

1. Overview In this tutorial, we'll explore the finally keyword in Java. We'll see how to use it alongside try/catch blocks in error handling. Though finally is intended to guarantee the execution of...

View Article

Image may be NSFW.
Clik here to view.

How to Return Multiple Values From a Java Method

1. Overview In this tutorial, we'll learn different ways to return multiple values from a Java method. First, we'll return arrays and collections. Then, we'll show how to use container classes for...

View Article


Image may be NSFW.
Clik here to view.

Decompiling Classes in Java

1. Introduction In this tutorial, we'll discuss decompiling Java classes. When source code is not available, decompiling Java classes helps to debug and understand source code behavior. Let's take a...

View Article

Image may be NSFW.
Clik here to view.

Specify an Array of Strings as Body Parameters in Swagger

1. Overview Swagger is a set of specifications to document and describe REST APIs. It also provides example values for the endpoint parameters. In this tutorial, we'll show how to produce a default...

View Article


Image may be NSFW.
Clik here to view.

Apache RocketMQ with Spring Boot

1. Introduction In this tutorial, we’ll create a message producer and consumer using Spring Boot and Apache RocketMQ, an open-source distributed messaging and streaming data platform. 2. Dependencies...

View Article

Image may be NSFW.
Clik here to view.

Convert Double to Long in Java

1. Overview In this tutorial, we'll explore various methods to convert from double to long in Java. 2. Using Type Casting Let's check a straightforward way to cast the double to long using the cast...

View Article


Image may be NSFW.
Clik here to view.

Using Cookies With Selenium WebDriver in Java

1. Overview In this article, we'll have a quick look at how to use cookies with Selenium WebDriver in Java. We'll talk a bit about some use cases, and then we'll jump straight into code. 2. Working...

View Article

Image may be NSFW.
Clik here to view.

Kotlin Ternary Conditional Operator

1. Overview Briefly speaking, there is no ternary operator in Kotlin. However, using if and when statements helps to fill this gap. In this tutorial, we'll look into a few different ways to mimic the...

View Article

Image may be NSFW.
Clik here to view.

Read Excel Cell Value Rather Than Formula With Apache POI

1. Introduction When reading an Excel file in Java, we usually want to read the values of cells to perform some computation or generate a report. However, we may encounter one or more cells that...

View Article
Browsing all 4535 articles
Browse latest View live


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