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

Image may be NSFW.
Clik here to view.

Count Spaces in a Java String

1. Overview When we work with Java strings, sometimes we would like to count how many spaces are in a string. There are various ways to get the result. In this quick tutorial, we'll see how to get it...

View Article


Image may be NSFW.
Clik here to view.

Java Sound API – Capturing Microphone

1. Overview In this article, we'll see how to capture a microphone and record incoming audio in Java to save it to a WAV file. To capture the incoming sound from a microphone, we use the Java Sound...

View Article


Image may be NSFW.
Clik here to view.

Undo and Revert Commits in Git

1. Introduction We often find ourselves needing to undo or revert a commit while using Git, whether it's to roll back to a particular point in time or to revert a particularly troublesome commit. In...

View Article

Image may be NSFW.
Clik here to view.

New Features in Java 16

1. Overview Java 16, released on the 16th of March 2021, is the latest short-term incremental release building on Java 15. This release comes with some interesting features, such as records and sealed...

View Article

Image may be NSFW.
Clik here to view.

Streaming with gRPC in Java

1. Overview gRPC is a platform to do inter-process Remote Procedure Calls (RPC). It follows a client-server model, is highly performant, and supports the most important computer languages. Check out...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 404

1. Spring and Java >> JDK 17 G1/Parallel GC changes [tschatzl.github.io] One more reason to upgrade to Java 17 – reduced GC pauses, significant memory savings, and enhanced Windows support on G1...

View Article

Image may be NSFW.
Clik here to view.

Consistency Levels in Cassandra

1. Overview Apache Cassandra is an open-source, NoSQL, highly available, and scalable distributed database. To achieve high availability, Cassandra relies on the replication of data across clusters. In...

View Article

Image may be NSFW.
Clik here to view.

Snapshotting Aggregates in Axon

1. Overview In this article, we'll be looking at how Axon supports aggregate snapshotting. We consider this article to be an expansion of our main guide on Axon. As such, we'll utilize both Axon...

View Article


Image may be NSFW.
Clik here to view.

Differences Between applicationContext.xml and spring-servlet.xml in Spring

1. Introduction When developing a Spring application, it is necessary to tell the framework where to look for beans. When the application starts, the framework locates and registers all of them for...

View Article


Image may be NSFW.
Clik here to view.

Get a Submap From a HashMap in Java

1. Overview In our previous tutorial, A Guide to Java HashMap, we showed how to use HashMap in Java. In this short tutorial, we'll learn how to get a submap from a HashMap based on a list of keys. 2....

View Article

Image may be NSFW.
Clik here to view.

Share Docker Images Without Using the Docker Hub

1. Overview Let's suppose we need to share a Docker image that is present locally on our machine. To solve this problem, Docker Hub comes to the rescue. Docker Hub is a cloud-based central repository...

View Article

Image may be NSFW.
Clik here to view.

Email Validation in Java

1. Overview In this tutorial, we'll learn how to validate email addresses in Java using regular expressions. 2. Email Validation in Java Email validation is required in nearly every application that...

View Article

Image may be NSFW.
Clik here to view.

JUnit 4 on How to Ignore a Base Test Class

1. Overview This tutorial will discuss possible solutions to skip running tests from base test classes in JUnit 4. For purposes of this tutorial, a base class has only helper methods, while children...

View Article


Image may be NSFW.
Clik here to view.

Introducing KivaKit

1. Overview KivaKit is a modular Java application framework designed to make developing microservices and applications quicker and easier. KivaKit has been developed at Telenav since 2011. It is now...

View Article

Image may be NSFW.
Clik here to view.

Add a Reference to Method Parameters in Javadoc

1. Overview In the Java language, we can generate documentation in HTML format from Java source code using Javadoc. In this tutorial, we'll learn about different ways to add a reference to method...

View Article


Image may be NSFW.
Clik here to view.

REST vs. gRPC

1. Overview In this article, we’ll compare REST and gRPC, two architectural styles for web APIs. 2. What Is REST? REST (Representational State Transfer) is an architectural style that provides...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 405

1. Spring and Java >> Multiple ways to configure Spring [blog.frankel.ch] A practical guide on different approaches to configure Spring applications: from files to config classes to Kotlin DSLs!...

View Article


Image may be NSFW.
Clik here to view.

Spring Security – Request Rejected Exception

1. Introduction Spring Framework versions 5.0 to 5.0.4, 4.3 to 4.3.14, and other older versions had a directory or path traversal security vulnerability on Windows systems. Misconfiguring the static...

View Article

Image may be NSFW.
Clik here to view.

Build a Dashboard With Cassandra, Astra and CQL – Mapping Event Data

1. Introduction In our previous article, we looked at augmenting our dashboard to store and display individual events from the Avengers using DataStax Astra, a serverless DBaaS powered by Apache...

View Article

Image may be NSFW.
Clik here to view.

Convert Long to String in Java

1. Overview In this short tutorial, we'll learn how to convert Long to String in Java. 2. Use Long.toString() For example, suppose we have two variables of type long and Long (one of primitive type and...

View Article
Browsing all 4535 articles
Browse latest View live


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