Posts from Java

File Handling in Java using NIO package

By Ayush Sanghavi

Let us first study what NIO is and how can we use it for File Handling in Java. So basically, Java has provided us with another I/O system called the NIO which stands for NEW I/O. .... Read More

How to run a task every n seconds or periodically in Java

By Krishna Lakhi

Hey Everyone! In this article, we will learn how we can execute or perform a particular task in Java every n seconds or periodically using the Timer and TimerTask classes. Before d.... Read More

Program to check two Strings are Anagram or not using Hashmap in Java

By Darshna Patil

Today we are going to write a program to find or check whether two strings are an anagram or not using hashmap in Java. First, we should know what are anagrams. Anagrams are those .... Read More

Program to convert a Billion to Crore In Java

By Darshna Patil

Hi coders! today we going to write a code to convert a billion amount to crore in Java. As we move across the world we find different currency and there is also a different standar.... Read More

Program to convert pounds (lbs) to Kilograms (kg) in Java

By Darshna Patil

Today we are going to write a program to convert weight in pounds to kilograms. As we all know units are not the same everywhere, in some places pounds are used to measure the weig.... Read More

Java Program to Find Second Last digit of a Number

By Priyam Patel

In this tutorial, we will be solving the problem of Java program to find the second last digit of a number. We will be going for short tricks for solving this kind of problem. Java.... Read More

Java Program to Find Next Prime Number

By Priyam Patel

In this tutorial, we will be heading towards solving the Java program to find the next prime number. Also, I will be looking for all the required packages and methods for its easy .... Read More

Converting Roman Numerals into Integer Value in Java

By Darshna Patil

Hi! coders today we are going to see that how to convert a Roman numeral in integer in Java. We all know that Roman numerals are the number system that originated in ancient Rome. .... Read More