Learn how to get the 2’s complement of a number in Java.
Search Results for: subtraction
Exploring Complex Number Arithmetic Operations in Java
Learn how to perform complex-number operations in Java.
Vigenère Cipher in Java
A quick and practical guide to Vigenère Cipher in Java.
Convert Infix to Postfix Expressions in Java
Explore infix, prefix, and postfix notations of mathematical expressions.
Time Conversions Using TimeUnit
We look at how to use TimeUnit to convert durations between units and avoid creating our own hard-to-read math code.
Generating Javadoc With Gradle
Learn how to generate Javadoc using the Gradle build system.
Get Last N Messages in Apache Kafka Topic
Learn how to get the latest N messages of a Kafka Topic.
Swap Two Variables in Java
Learn how to swap two variables in Java, depending on the type of the variables.
Java Operators
Walk through all Java operators to understand their functionalities and how to use them
Cassandra Query Cheat Sheet
Learn the essential concepts of Cassandra query language (CQL) and how to apply them
Micronaut vs. Spring Boot
Compare the functionality of Spring Boot with Micronaut.
Guide to Implementing the compareTo Method
Learn about how to implement the compareTo method using core Java.
Open/Closed Principle in Java
Explore the Open/Closed Principle (OCP) as one of the SOLID principles of object-oriented programming in Java.
Obtaining a Power Set of a Set in Java
Study the process of generating a power set of a given set in Java.
Basic Calculator in Java
Learn how to implement a Basic Calculator in Java, using two different constructs.
The Caesar Cipher in Java
Learn how to cipher and decipher a message by shifting its letters by a given offset using Caesar Cipher.
Finding Greatest Common Divisor in Java
Learn several ways to find the Greatest Common Divisor in Java.
Binary Numbers in Java
Learn how to convert binary numbers into decimal ones and vice versa.
Closures in Groovy
Explore the concept of closures in Groovy, a key feature of this dynamic and powerful JVM language.
Introduction to Basic Syntax in Java
Explore the basics of Java syntax.