(Read this article on the blog)
Last updated on 2023/09/22 to include changes up to JDK 21.
This article is also available in Chinese by Alex Tan.
Since the release of version 8, up to ver… Read More
A collection of PHP libraries, plugins, utilities and tools for parsing and manipulating numbers including bigInteger, bigDecimal and bigRational, byte units, binary, metric system, unit… Read More
While working on different Java apps, there arises the concept of optimization.
It is essential to maintain the cleanliness of the code, and it also doesn’t have any defects and is… Read More
Empowering Automation and Rapid Application Development
In the context of software development, automating repetitive tasks and accelerating application development is the name of the gam… Read More
In this post, I will be sharing how to format BigDecimal as String with max 2 decimal digits. There are two ways to achieve our goal:1. Exactly 2 decimal digits2. Max 2 decimal digitsRead Al… Read More
In this short post, I will be sharing how to convert Double to BigInteger in Java.1. Using BigDecimal class valueOf() and toBigInteger() methods2. Using the BigDecimal constructor and toBigI… Read More
Entity identifiers are used to uniquely identify a row in a table. Hibernate and JPA (Jakarta Persistence API), assumes following rules must be followed by the identifier. a. &nb… Read More
To convert a number to a string in Groovy, you can use the toString() method. This method is available on all numerical data types, such as int, double, and BigDecimal. Convert Number to Str… Read More
In the post Java JDBC Steps to Connect to DB we have already seen a complete example using the interfaces Driver, Connection, Statement and ResultSet provided by the JDBC API. In this post… Read More
When you serialize an object in Java it is converted to byte stream and object is reconstituted using that byte stream during the process of deserialization. Sometimes this extraneous behavi… Read More
Array in Java is also a class so many of the methods in java.lang.Class may be used with the array. Refer reflection in java – class to know more about the methods in Class.Reflection… Read More
A functional interface in Java is an interface with only one abstract method. A functional interface is also known as SAM type where SAM stands for (Single Abstract Method). An example of… Read More
Atlas type system allows you to define a model for metadata objects that you want to manage. The model is composed of types, entities (instance of type is called entity, maintain actual meta… Read More
In this post, I will be sharing how to convert Integer to BigInteger in Java. There are two ways to achieve our goal:1. Using BigInteger class valueOf() method2. Using BigDecimal class toBig… Read More
Introduction to JSF Converters
In JSF (JavaServer Faces) application, the user inputs are sent to the server using an http request as a client request. These user inputs are referred to as… Read More
Junit5 supports automatic arguments conversion. There are three types of conversions. a. Widening Conversion b. Implicit Conversion c. Explicit Conv… Read More
In this post, we will see how to print float to 2 decimal places in java.
There are multiple ways to how to print float to 2 decimal places in java.1. Using System.out.printf
In case, if you… Read More