Posts from Java

How to convert XML to JSON in Java

By Ishika Koytekar

In this tutorial, we will learn how to convert XML data to JSON data in Java. Using a simple Java program we can easily convert XML data to JSON data. XML stands for eXtensible Mar.... Read More

How to calculate velocity using Java

By Smitha S Maganti

In this demo, we are going to learn how to calculate the final velocity of an object or a body in Java. We will be taking time, acceleration, displacement, and initial velocity as .... Read More

How to generate PDF invoice using Java

By Tishya Thakkar

In this tutorial, we will look at how to generate an invoice using Java. What is an invoice? An invoice is a document that contains information regarding a sale transaction like pr.... Read More

How to check if a number is Hoax or not in Java

By Ishika Koytekar

What is a Hoax Number? A Hoax number is defined as a composite number, whose sum of digits is equal to the sum of digits of its distinct prime factors. Note: 1 is not considered a .... Read More

Command Line Arguments

By Arihant Jain

In Java, command line arguments are used to take user input before running the program in a single line. When we run the program in compiler, we write “javac filename.java.... Read More

How to count number of sentences in a text file in Java

By Ishika Koytekar

If you are wondering how many sentences does a .txt file contains? You will get your question answered here! In this tutorial, we are going to study how many sentences are present .... Read More

Finalize method in Java

By Shubham Kumar Singh

Fellow coders, in this tutorial we are going to learn about the finalize() method in Java programming language. We will also work on an example by implementing this method in a jav.... Read More

Calculate Derivative Functions in Java

By Shubham Kumar Singh

Fellow coders, in this tutorial we are going to learn how to calculate the derivative of a function in Java. As we all know that, the derivative of a function measures the change i.... Read More

Related Posts