Understanding how Java represents integers can help us with certain mathematical operations. In this article, we look at integer representation and how to use bitwise operations with Java numbers.
Search Results for: repr
RGB Representation as an Integer in Java
Learn how to use bitwise operations to move between RGB and integer representations.
Representing Furthest Possible Date in Java
Learn how to represent the furthest possible date using the java.util.Date and java.lang.Long classes.
Hex Representation of a SHA-1 Digest of a String in Java
Learn three different ways to generate the hex representation of a SHA-1 digest of a string in Java.
Convert a Byte Array to a Numeric Representation in Java
Explore different approaches to convert a byte array to a numeric value and vice versa in Java.
Check if a Number Is Power of 2 in Java
Explore a few ways to determine if a number is a power of 2 in Java.
Finding the Second Smallest Integer in an Array in Java
Explore a few approaches to finding the second smallest number in an array.
Introduction to JavaParser
A quick and practical guide to JavaParser.
Configuring Retry Policy for gRPC Request
Learn how to implement retry policies in gRPC.
Convert InputStream to Stream in Java
Learn how to take an InputStream and convert it into a functional Stream in Java.
How to Convert Between ZonedDateTime and Date in Java
Learn how to convert between ZonedDateTime and Date in Java.
Convert Jackson JsonNode to Typed Collection
Explore different methods of converting Jackson’s raw data type JsonNode into typed Java collections.
How to Iterate a List of Maps in Java
Explore various techniques for iterating through a List of Maps in Java.
Convert an Optional to an ArrayList in Java
Explore various approaches to converting Optional to ArrayList.
Inheritance vs. Composition in JPA
Explore the fundamental differences between inheritance and composition in JPA entity modeling.
Converting short to byte[] in Java
Learn how to convert a short value to a byte[] array.
Fix Spring Boot H2 JdbcSQLSyntaxErrorException “Table not found”
This tutorial explores addressing the “Table not found” error in H2 databases, commonly encountered in Spring Boot applications. You can mitigate this issue by configuring H2, mapping entities, and managing data with JPA repositories.
How to Convert Between java.sql.Timestamp and ZonedDateTime in Java
Learn how to convert between ZonedDateTime and java.sql.Timestamp classes in Java.
Get the Position of Key/Value in LinkedHashMap Using Its Key
Explore different approaches to getting the position of a key value within a LinkedHashMap in Java.
Avoiding the IndexOutOfBoundsException When Using List.subList() in Java
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.