Learn how to validate lists in Spring including the cases where only specific values are allowed.
Also find me here:
Baeldung Author
Neetika Khandelwal
An enthusiastic computer science engineer with experience working in Java applications. I have interest in solving real world problems through my knowledge in DSA and passionate about learning new technologies. I also develop technical contents to share knowledge and provide learning content.
Here's what I've written (so far):
Baeldung on Java
- All
- Java Array (6)
- Java List (4)
- Algorithms (4)
- Java Streams (3)
- Java Numbers (3)
- Java Map (3)
- Java Collections (3)
- Spring Boot (2)
- Java String (2)
- Java (2)
- JSON (2)
- Testing (1)
- Spring (1)
- Networking (1)
- Logging (1)
- Java Web (1)
- Data (1)
- Core Java (1)
Difference Between a HashMap and a Dictionary in Java
Filed under Java Map
Explore the differences between Java’s HashMap and Dictionary, and find out when and why to use each.
Convert Between IPv6 and BigInteger in Java
Filed under Java Numbers, Networking
By using InetAddress for address parsing and BigInteger for numerical manipulation, we can seamlessly work with IPv6’s 128-bit complexity in a robust and scalable manner.
How to Check if Two Boolean Values Are Equal
Filed under Core Java
Explore several techniques for checking for equality between boolean values and learn when each method is appropriate.
Finding the Index of the First Duplicate Element in an Array
Filed under Algorithms, Java Array
Finding the first duplicate in an array can be done using different strategies, each with its time and space complexity trade-offs.
Mock @Value in Spring Boot Test
Filed under Spring Boot, Testing
Learn why and how to mock @Value in Spring Boot tests to ensure smooth and effective testing without loading the entire application context.
Why Is 2 * (i * i) Faster Than 2 * i * i in Java?
Filed under Java Numbers
Explore why 2 * (i * i) is generally faster than 2 * i * i and dive into the underlying reasons
How to Check if a Number Is a Palindrome in Java
Filed under Algorithms, Java Numbers
Explore various ways to check if a number is a palindrome, including iterative methods, recursive techniques, and a few optimized approaches.
Find the Length of the Largest Subarray With Zero Sum in Java
Filed under Algorithms, Java Array
Walk through a step-by-step linear-time Java HashMap approach to finding the largest subarray that sums to zero.
Baeldung on Computer Science
- All
- Programming (1)
- Data Structures (1)
How to Implement a Queue Using Two Stacks?
Filed under Data Structures
Learn two approaches to simulating a FIFO queue using two LIFO stacks.
High-Level Design vs. Low-Level Design
Filed under Programming
Explore the differences between high-level and low-level designs in software engineering.