Posts from Java

How to write multi-line comments in Java

By Vaishnavi Penumerthy

In this article, you will learn how to comment multiple lines in Java. Multi-line comments in Java We are familiar with single-line comments in Java that start with two forward sla.... Read More

How to download a Git repository using Java in Eclipse

By Smitha S Maganti

In this tutorial, you will learn how to download a Git repository using a Java program in Eclipse. The Eclipse version used in this tutorial is Eclipse IDE for Java Developers, 202.... Read More

Reasons and Solutions of Null Pointer Exception in Java

By Vaishnavi Penumerthy

In this article, we will learn about null pointer exceptions in Java and look into some of the common errors that result in them. We will also see how we can prevent them from happ.... Read More

How to convert string to int in Java

By Smitha S Maganti

Let’s learn how to convert a string to int in Java. The Java Integer class provides two methods to carry out this process. First is the Integer.parseInt() method, and the oth.... Read More

Min-Max Normalization on a Data Set in Java

By Vaishnavi Penumerthy

Hey Guys, In this article, we will learn about Min-Max Normalization and implement it in Java for a given data set. What is data normalization? Data normalization is a technique to.... Read More

Implementation of Fermat’s Little Theorem in Java

By Vaishnavi Penumerthy

Hey Guys, in this article we will learn about Fermat’s Little Theorem and implement it in Java. Fermat’s Little Theorem was proposed by the French mathematician Pierre de Ferma.... Read More

Temperature Converter (°C,°F, K) in Java

By Vaishnavi Penumerthy

Hello guys, in this article we will create a Temperature Converter for Celsius, Fahrenheit and Kelvin units in Java. The formulae for conversation between the units are given below.... Read More

What is a substring in Java?

By Smitha S Maganti

In this tutorial, you will learn what a substring is in Java. A substring is a part or subset of another string. For example, ‘Code’ is a substring of the string ‘.... Read More