Posts from Java

Make HTTP request from a Java program

By Shantanu Shrivastava

In this tutorial, we will learn how to make HTTP GET/POST request using a Java program with the help of some easy-to-understand examples. As you know, the world nowadays revolves a.... Read More

Rounding BigDecimal values with specific Decimal Places in Java

By Krishna Lakhi

In this tutorial, we will learn how to round BigDecimal values in Java up to specific decimal places. BigDecimal class in Java The BigDecimal class in Java is useful for providing .... Read More

Java Program to find and count a specific word in a Text File

By Krishna Lakhi

Hey everyone! In this article, we will learn how to find a specific word in a text file and count the number of occurrences of that word in the text file. Before taking a look at t.... Read More

Extract Date from a String in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how to Extract a Date from a user-entered String in Java. We will be using the date class in Java to parse the String inputted by the u.... Read More

Count the prime numbers in a certain range in Java

By Akash Tripathi

Hey folks, today we will see how to count the prime numbers in a certain range in Java. For this purpose, we won’t be using any predefined methods and will code the logic fro.... Read More

Enumeration Interface in Java

By Avantika Singh

Hello Learners, today we are going to learn about the use of Enumeration Interface with collections in Java. The Enumeration interface was introduced in JDK 1.0 under Java.util pac.... Read More

Generate Random Music In Java

By Kamalpreet Singh

In this tutorial, we will learn to generate random music using java. This means that we will write a code to play sound using java. We will generate a tune using a sine wave. The n.... Read More

How to convert map to JSON string in Java

By Kamalpreet Singh

In this tutorial, we will learn how to convert Map to JSON String. For this, first of all, we will learn What is the map? Answer. The map contains the values on the basis of keys i.... Read More

Related Posts