Why IllegalArgumentException is thrown and how to fix in it in Java.
Also find me here:
Baeldung Author
Abderrahim Azhrioun
Full Stack Developer, Java Geek, Spring Lover, and a Blogger. I believe coding should be fun and accessible to everyone ;)
Here's what I've written (so far):
Baeldung on Java
- All
- Java Dates (9)
- Java String (8)
- JPA (8)
- Java IO (6)
- Spring Boot (4)
- Persistence (4)
- Core Java (4)
- Spring Data (3)
- Java List (3)
- Jackson (3)
- Spring Web (2)
- Spring MVC (2)
- Java Streams (2)
- Java Collections (2)
- Spring Persistence (1)
- Java Map (1)
- Java Array (1)
- Java (1)
- JSON (1)
- HTTP Client-Side (1)
Convert Anonymous Class into Lambda in Java
Filed under Core Java
A reminder of what an anonymous class is and how to convert it to a lambda expression.
Enum Mapping in Spring Boot
Filed under Spring Boot
Explore different ways to implement case-insensitive enum mapping in Spring Boot.
Compare Characters in Java
Filed under Core Java
Learn how to compare characters in Java.
How to Truncate a String in Java
Filed under Java String
Learn how to truncate a String in Java.
Format Instant to String in Java
Filed under Java Dates
Learn two different ways to format an instant as a string – one using core Java and the other using the Joda-Time library.
HttpMessageNotWritableException: No Converter for [class …] With Preset Content-Type
Filed under Spring Web
Learn what causes Spring to throw HttpMessageNotWritableException with the message “No converter for [class …] with preset Content-Type” and how to solve it.
Check if a String Ends with a Certain Pattern in Java
Filed under Java String
Learn how to check if a String ends in a certain pattern in Java using core Java methods as well as Apache Commons Lang’s StringUtils class.
Split a String Every n Characters in Java
Filed under Java String
Learn several ways to split a string after every n characters in Java.