Posts by Abhi Tiwari

Author Biographical Info: Not available

How to iterate or loop through JSON array in Java

By Abhi Tiwari

In this tutorial, we will learn how to iterate a JSON array in Java with the code and Explanation using json-simple-1.1.1.jar. What is a JSON array? It represents a list of ordered.... Read More

How to overwrite a file in Java

By Abhi Tiwari

Can we overwrite a file using Java? Yes! In this blog, you will learn how to overwrite a file in Java using java.io.FileWriter class. Class FileWriter This class belongs to java.io.... Read More

How to generate random floating point number in Java

By Abhi Tiwari

In this tutorial, we use the java.util.Random() class to generate the random floating-point numbers by using the nextFloat() method. Click here, to learn more about the java.util.R.... Read More

Random dice role program in Java

By Abhi Tiwari

Welcome, in this tutorial we create a dice program in java that generates a random number between 1 to 6. we use a java.util.Random class to generate the numbers between the specif.... Read More

How to count number of pages in a PDF file in Java

By Abhi Tiwari

Welcome, in this tutorial, we will learn how to count the number of pages of a pdf document with Java using Apache PDFBox. Prerequisite You have to add a pdfbox-app-2.0.25.jar from.... Read More

Deque in Java with examples

By Abhi Tiwari

What is java.util.Deque? In this blog, you will learn about Java Deque Interface also its declaration, Constructors, etc. Deque (double-ended queue) is generally pronounced as a de.... Read More

Swap two elements in an array in Java

By Abhi Tiwari

In this blog, you will see simple logic to swap the elements of the array, and also you can learn about Java.util.Collections Swap method. Simple Swapping logic in Java public clas.... Read More

Java.util.Random class in Java with examples

By Abhi Tiwari

What is java.util.Random class and its methods with example?. In this blog, we will learn about java.util.Random class Random in detail with examples. In simple terms, this class i.... Read More

Related Posts