Where To Use the Underscore in Java

This series of articles called “Stranger things in Java”, is inspired by the contents of my book “Java for Aliens”. These articles are dedicated to insights into the Java language. Deepening the topics we use every day will allow us to master Java coding even in the strangest scenario.

In this article, we will try to clarify the use of the underscore symbol "_" in Java programming. So, let's examine the use cases of this symbol within a Java program. Let's start with the best-known case.

How To Convert double To int In Java?

In this article, we will see how we can convert a double to an int.

In Java programming, you will have a double primitive value (ex 82.14), but to do the further operations you need an int value (ex. 82) so let’s see how to convert double to int in Java.