Explore the differences between BigDecimal equals() and compareTo() methods.
Search Results for: java.math
Static Final Variables in Java
In this tutorial, we learn how to declare and initialize constant variables.
Convert Long to BigDecimal in Java
Explore two effective approaches for converting a Long to a BigDecimal 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.
Comparing Doubles in Java
In this tutorial, we’ll talk about the different ways of comparing double values in Java.
JPA @Basic Annotation
Learn when and how to use JPA’s @Basic annotation.
Introduction to Clojure
A comprehensive introduction to Clojure programming language.
Spring Boot Ehcache Example
A quick and practical guide to using Spring with Ehcache.
Calculate Factorial in Java
Learn several ways to calculate factorials in Java.
Calculate Percentage in Java
A simple tutorial about calculating percentage in Java using a CLI program.
A Practical Guide to DecimalFormat
Explore the Java’s DecimalFormat class along with its practical usages.
Introduction to Groovy Language
A look some of the essential features of Groovy, including basic syntax, control structures, and collections.
Java 9 – Exploring the REPL
Quick intro to jshell, the interactive REPL (Read-Evaluate-Print-Loop) console bundled with JDK 9.