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

Image may be NSFW.
Clik here to view.

Using a Custom TrustStore in Java

1. Introduction In this tutorial, we’re going to take a look at how to use custom TrustStore in Java. We’re going first to override the default TrustStore and then explore the ways to combine...

View Article


Image may be NSFW.
Clik here to view.

What Is the Error: “Non-static method cannot be referenced from a static...

1. Overview When we work with Java, we often run into problems that demand a deeper understanding of the language’s intricacies. One common puzzle is the error message: “Non-static method … cannot be...

View Article


Image may be NSFW.
Clik here to view.

Difference Between flush() and close() in Java FileWriter

1. Overview File handling is an essential aspect we frequently encounter. When it comes to writing data to files, the FileWriter class is commonly used. Within this class, two important methods,...

View Article

Image may be NSFW.
Clik here to view.

Maven Dependencies Failing With a 501 Error “HTTPS Required”

1. Overview In this tutorial, we’ll learn about the error “Return code is: 501, ReasonPhrase: HTTPS Required”. We’ll start by understanding what this error means, and then explore the steps to resolve...

View Article

Image may be NSFW.
Clik here to view.

Read Input Character-by-Character in Java

1. Introduction In many Java applications, we need to read the input data character by character since it is a common task, especially when working with lots of data from a stream source. In this...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 525

1. Spring and Java >> The best way to test the data access layer [vladmihalcea.com] Evaluating the pros and cons of different approaches of testing data access layers: unit testing vs...

View Article

Image may be NSFW.
Clik here to view.

Check if a Float Value is Equivalent to an Integer Value in Java

1. Introduction The floating-point numbers are typically represented using Java’s float or double data type. However, precision imposes a limitation as they use binary representations of these values....

View Article

Image may be NSFW.
Clik here to view.

Using Static Methods Instead of Deprecated JsonParser

1. Introduction Efficient JSON parsing is one of the most important tasks in Java programming when it comes to data manipulation and communication. The Gson library offers a versatile JsonParser class...

View Article


Image may be NSFW.
Clik here to view.

Global Exception Handling with Spring Cloud Gateway

1. Overview In this tutorial, we’ll explore the nuances of implementing a global exception-handling strategy within Spring Cloud Gateway, delving into its technicalities and best practices. In modern...

View Article


Image may be NSFW.
Clik here to view.

PriorityQueue iterator() Method in Java

1. Introduction One of the essential methods in PriorityQueue is the iterator() method. This method allows seamless traversal of the elements stored in the queue. In this tutorial, we’ll explore the...

View Article

Image may be NSFW.
Clik here to view.

Validate if a String Is a Valid Geo Coordinate

1. Introduction In this tutorial, we’ll explore various approaches to validating geo coordinates and their accuracy in Java. 2. Understand Geo Coordinates Geo coordinates are typically expressed as...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Spring Cloud AWS 3.0 – SQS Integration

1. Overview Spring Cloud AWS is a project that aims to simplify interacting with AWS services. Simple Queue Service (SQS) is an AWS solution for sending and receiving asynchronous messages in a...

View Article

Image may be NSFW.
Clik here to view.

Upload Multiple Files Using WebFlux

1. Overview Spring WebFlux is a reactive web framework that provides a non-blocking event loop to handle I/O operations asynchronously. Also, it uses Mono and Flux reactive stream publishers to emit...

View Article


Image may be NSFW.
Clik here to view.

Introduction to Apache Calcite

1. Overview In this tutorial, we’ll learn about Apache Calcite. It’s a powerful data management framework that can be used in various use cases concerning data access. Calcite focuses on retrieving...

View Article

Image may be NSFW.
Clik here to view.

Getting Query String Parameters from HttpServletRequest

1. Introduction One of the most important capabilities of backend HTTP API development is the ability to resolve request query parameters passed by the frontend. In this tutorial, we’ll introduce...

View Article


Image may be NSFW.
Clik here to view.

Printing Message on Console without Using main() Method in Java

1. Introduction The execution of a Java program starts from the main() method. However, there are some scenarios where we may want to display messages without using the main() method. In this tutorial,...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Postman

1. Overview Postman is a popular API development tool that simplifies designing, testing, modifying, and documenting APIs. It provides a user-friendly interface allowing users to send and receive HTTP...

View Article


Image may be NSFW.
Clik here to view.

Convert byte to int Type in Java

1. Overview Converting byte to int is a common operation, especially when dealing with low-level data manipulation, file I/O, or network communication. In this article, we’ll explore various methods...

View Article

Image may be NSFW.
Clik here to view.

Simple Morse Code Translation in Java

1. Overview Morse code encodes text characters using sequences of dots and dashes to represent letters, numbers, and punctuation. Samuel Morse and Alfred Vail developed it in the early 1830s for...

View Article

Image may be NSFW.
Clik here to view.

Setting up and Using Spock With Gradle

1. Overview The Spock Framework is a testing and specification framework for Java and Groovy applications. Gradle is a popular build tool and a Maven alternative. In this tutorial, we’ll show how to...

View Article
Browsing all 3589 articles
Browse latest View live


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