In Java, subList() creates a sub-list from a larger list, but it can throw an exception if you give it invalid starting or ending positions. Learn how to avoid this error.
Search Results for: id
Print the Default Value When Overriding toString() Method
Learn about overriding the toString() method and handling the potential null within.
Converting a Java Project/Module Into a Maven Project/Module in IntelliJ IDEA
A quick and practical guide to converting a Java project/module into a Maven project/module in IntelliJ IDEA.
Invalid Characters in XML
In this article, we learn about various invalid characters and how to handle them in XML processing.
Guide to ExecutorService vs. CompletableFuture
Explore two essential Java classes for handling asynchronous tasks: ExecutorService and CompletableFuture.
Difference Between GroupId and ConsumerId in Apache Kafka
Learn the difference between GroupId and ConsumerId in Apache Kafka.
Increase the Memory Size Limit on IntelliJ IDEA
A quick and practical guide to increasing memory size limit on Intellij IDEA.
A Guide to etcd
Explore etcd, an open-source distributed key-value store. Understand its fundamental concepts, features, and use cases with examples.
Guide to System.in.read()
Learn how to use Java’s System.in.read().
A Guide to the @SoftDelete Annotation in Hibernate
Learn about the Hibernate @SoftDelete annotation and understand how to implement it.
Storing UUID as Base64 String in Java
Learn how to store UUID as Base64 String using different approaches in Java.
Regular Expression for Password Validation in Java
Learn how to use a regex for Java-based password validation processes.
Difference between ZoneOffset.UTC and ZoneId.of(“UTC”)
Explore the ZoneOffset.UTC and ZoneId.of(“UTC”) methods and their key differences and use cases.
How to Determine if a String Contains Invalid Encoded Characters
Learn how to check if a Java string contains invalidly еncodеd characters.
Validate if a String Is a Valid Geo Coordinate
A short guide on checking if a Java String is a valid Geo Coordinate.
When to Use the getReferenceById() and findById() Methods in Spring Data JPA
Learn the difference between getReferenceById(ID) and findById(ID) and find the situation when each might be more suitable.
UTF-8 Validation in Java
Explore UTF-8 encoded bytes and string conversion and different types of UTF-8 validation based on byte and stream.
A Guide to Timefold Solver for Employee Scheduling
Learn how to use Timefold Solver, a planning optimization tool, to determine an optimal employee shift schedule.
Generating Unique Positive long Using UUID in Java
Learn how to use a UUID to generate a unique numeric value.
Overriding Spring Beans in Integration Test
In this tutorial, we learn how to override Spring beans in integration tests.