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

Image may be NSFW.
Clik here to view.

Modifying an XML Attribute in Java

1. Introduction One common activity when we are working with XML is working with its attributes. In this tutorial, we’ll explore how to modify an XML attribute using Java. 2. Dependencies In order to...

View Article


Image may be NSFW.
Clik here to view.

Converting Java String to Double

1. Overview In this tutorial, we’ll cover many ways of converting a String into a double in Java. 2. Double.parseDouble We can convert a String to a double using the Double.parseDouble method:...

View Article


Image may be NSFW.
Clik here to view.

The Basics of Java Security

1. Overview In this tutorial, we’ll go through the basics of security on the Java platform. We’ll also focus on what’s available to us for writing secure applications. Security is a vast topic that...

View Article

Image may be NSFW.
Clik here to view.

Sorting Strings by Contained Numbers in Java

1. Introduction In this tutorial, we’ll look at how to sort alphanumeric Strings by the numbers they contain. We’ll focus on removing all non-numeric characters from the String before sorting multiple...

View Article

Image may be NSFW.
Clik here to view.

A Guide to Increment and Decrement Unary Operators in Java

1. Overview In this tutorial, we’ll briefly discuss the increment and decrement unary operators in Java. We’ll start by looking at the syntax followed by the usage. 2. Increment and Decrement...

View Article


Image may be NSFW.
Clik here to view.

Metaprogramming in Groovy

1. Overview Groovy is a dynamic and powerful JVM language which has numerous features like closures and traits. In this tutorial, we’ll explore the concept of Metaprogramming in Groovy. 2. What is...

View Article

Image may be NSFW.
Clik here to view.

Binary Numbers in Java

1. Introduction The binary number system uses 0s and 1s to represent numbers. Computers use binary numbers to store and perform operations on any data. In this tutorial, we’ll learn how to convert...

View Article

Image may be NSFW.
Clik here to view.

Running a Spring Boot App with Maven vs an Executable War/Jar

1. Introduction In this tutorial, we’ll explore the differences between starting a Spring Boot web application via the mvn spring-boot:run command and running it after it is compiled into a jar/war...

View Article


Image may be NSFW.
Clik here to view.

An Introduction to Java SASL

1. Overview In this tutorial, we’ll go through the basics of Simple Authentication and Security Layer (SASL). We’ll understand how Java supports adopting SASL for securing communication. In the...

View Article


Image may be NSFW.
Clik here to view.

Find Files That Have Been Changed Recently in Linux

1. Introduction There are various occasions when we want to search for files that have been changed recently. For example, as a system admin, we’re responsible to maintain and configure computer...

View Article

Image may be NSFW.
Clik here to view.

Automatic Generation of the Builder Pattern with FreeBuilder

1. Overview In this tutorial, we’ll use the FreeBuilder library to generate builder classes in Java. 2. Builder Design Pattern Builder is one of the most widely used Creation Design Patterns in...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 293

Here we go… 1. Spring and Java >> Brian Goetz Speaks to InfoQ about Proposed Hyphenated Keywords in Java [infoq.com] As Java continues to evolve, we may soon see hyphenated keywords, like the...

View Article

Image may be NSFW.
Clik here to view.

Javax BigDecimal Validation

1. Introduction In the tutorial Java Bean Validation Basics, we saw how to apply basic javax validation to various types, and in this tutorial, we’ll focus on using javax validation with BigDecimal. 2....

View Article


Image may be NSFW.
Clik here to view.

Java ‘Hello World’ Example

1. Overview Java is a general-purpose programming language that focuses on the WORA (Write Once, Run Anywhere) principle. It runs on a JVM (Java Virtual Machine) that is in charge of abstracting the...

View Article

Image may be NSFW.
Clik here to view.

Thymeleaf lists Utility Object

1. Overview Thymeleaf is a Java template engine for processing and creating HTML. In this quick tutorial, we’ll look into Thymeleaf’s lists utility object to perform common list-based operations. 2....

View Article


Image may be NSFW.
Clik here to view.

Adding a Path to the Linux PATH Variable

1. Overview In this quick tutorial, we’ll focus on how to add a path to the Unix PATH variable. 2. PATH Variable The PATH variable is an environment variable that contains an ordered list of paths that...

View Article

Image may be NSFW.
Clik here to view.

Evaluation of Methods References in Java

1. Overview Java 8 introduced the concept of method references. We often see them as similar to lambda expressions. However, method references and lambda expressions are not exactly the same thing. In...

View Article


Image may be NSFW.
Clik here to view.

Find the Number of Lines in a File Using Java

1. Overview In this tutorial, we’ll learn how to find the number of lines in a file using Java with the help of standard Java IO APIs, Google Guava and the Apache Commons IO library. 2. NIO2 Files Note...

View Article

Image may be NSFW.
Clik here to view.

Finding Greatest Common Divisor in Java

1. Overview In mathematics, the GCD of two integers, which are non-zero, is the largest positive integer that divides each of the integers evenly. In this tutorial, we’ll look at three approaches to...

View Article

Image may be NSFW.
Clik here to view.

A Guide to Java GSS API

1. Overview In this tutorial, we’ll understand the Generic Security Service API (GSS API) and how we can implement it in Java. We’ll see how we can secure network communication using the GSS API in...

View Article
Browsing all 4535 articles
Browse latest View live


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