Learn how to convert a Map to an Object or POJO in Java.
Search Results for: cast
Difference Between Casting to String and String.valueOf()
Discover when casting to String or using String.valueOf() is most useful.
Simplified Array Operations on JsonNode Without Typecasting in Jackson
Explore various approaches to simplifying array operations on JsonNode without explicitly typecasting it to ArrayNode in Jackson.
Java Warning “Unchecked Cast”
We’ll discuss what “unchecked cast” compiler warning means, why we’re warned, and how to solve the problem
Jackson: java.util.LinkedHashMap cannot be cast to X
Learn why the “java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to X” exception occurs and how to solve the problem
Explanation of ClassCastException in Java
Let’s take a closer look at the ClassCastException.
Casting int to Enum in Java
Learn how to cast an int to an Enum in Java
Fixing the JPA error “java.lang.String cannot be cast to Ljava.lang.String;”
Learn how to fix a common casting error in JPA queries.
ClassCastException: Arrays$ArrayList cannot be cast to ArrayList
Learn how to avoid a ClassCastException when working with various Java List implementations.
Introduction to Hazelcast Jet
Learn how to use Hazelcast Jet to process stream data.
Object Type Casting in Java
An overview of type casting in Java, covered with simple and easy to understand examples.
Introduction to BouncyCastle with Java
Discover BouncyCastle – a Java library complementing the default Java Cryptographic Extension (JCE).
Broadcasting and Multicasting in Java
Learn how one-to-all (broadcast) and one-to-many (multicast) communications can be handled in Java.
Guide to Hazelcast with Java
An intro guide to using Hazelcast in Java – and a look at the cluster, client and distributed map.
Converting short to byte[] in Java
Learn how to convert a short value to a byte[] array.
How to Use Pair With Java PriorityQueue
Learn how to use Comparators with PriorityQueues and how to change the sorting order in such queues.
Compare the Numbers of Different Types
Learn how to compare primitives and numbers of different classes, such as Integers, Longs, and Floats.
Convert From int to short in Java
Learn how to convert from an int primitive to a short primitive in Java.
Java Weekly, Issue 540
Avoiding n+1 queries, Spring AI, JMS, Graal dev kit, and GitHub actions on Raspberry PI!
Intro to Apache Commons Configuration Project
Apache Commons Configuration can be used to allow us to specify configuration parameters to be loaded at runtime by our application. We look at a few use cases and types of configuration files.