Learn how to convert a hex color code to an equivalent RGB value in Java.
Search Results for: bits
Common Exceptions of Crypto APIs in Java
A quick and practical guide to some common exceptions that can occur while working with encryption in Java.
Gravity/Bead Sort in Java
Learn about the gravity sort (a.k.a. bead sort) algorithm and understand its single-threaded implementation in Java.
Fixing the “java: integer number too large” Error
Learn two common pitfalls when we work with integer literals in Java.
Guide to Simple Binary Encoding
Learn about Simple Binary Encoding (SBE): how to set it up, define the message structure via XML, and use it for messages in Java.
Infinity in Java
Explore the concept and usage of positive and negative infinity in Java.
A Guide to Maven Encoding
Learn how to set character encoding in Maven.
Swap Two Variables in Java
Learn how to swap two variables in Java, depending on the type of the variables.
Difference Between == and equals() in Java
Learn about the reference and value equality checks in Java, the differences between them, and understand when to use which check.
Convert Byte Size Into a Human-Readable Format in Java
Explore how to convert file size in bytes into a human-readable format in Java
Java Error “bad operand types for binary operator”
Learn why we may encounter the Java compile-time error “bad operand types for binary operator” and how to resolve the problem
Java Operators
Walk through all Java operators to understand their functionalities and how to use them
Convert long to int Type in Java
A quick and practical guide to long to int conversion in Java.
Convert Between Byte Array and UUID in Java
A quick and practical conversion guide between byte arrays and UUID.
Generating a Secure AES Key in Java
A quick and practical guide to generating a secure AES key in Java.
Java Weekly, Issue 419
Happy New Year 🙂 An interesting set of articles this week, from HTTP to persistence optimization and some Dilbert.
Getting a Bit at a Certain Position from Integral Values
We may need to test whether the binary digits of a number are set. We explore how to do this for any digit in an integer, using some optimised binary maths as well as some simpler alternatives.
Initialization Vector for Encryption
Learn how to use an Initialization Vector (IV) with encryption algorithms and the best practices while using the IV
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.
Java Weekly, Issue 405
Spring configurations, Java 18 snippets, Spring 6, Micronaut 3.0, Netflix’s media packaging, and atomic habits for software engineers!