Posts from Java

GUI Application to Calculate Area of a Square in NetBeans IDE using Java

By Vaishnavi Penumerthy

In this tutorial, you will learn to create a simple GUI application that calculates the area of a square in NetBeans IDE. Before continuing make sure you go through the article bel.... Read More

Download a file from a URL and store in a specific directory using Java

By Smitha S Maganti

In this tutorial, you learn how to download a file from a URL using the Java IO package. You use the BufferedInputStream class to read the contents of a file, and the BufferedOutpu.... Read More

How to find common dates between two date ranges in Java

By Tishya Thakkar

In this tutorial, we will learn how to find common dates between two date ranges in Java. To do this, we will be using the LocalDate Java class. This will give us an immutable date.... Read More

Chinese Remainder Theorem in Java

By Vaishnavi Penumerthy

Hey guys, in this article we will learn The Chinese Remainder Theorem and implementation it in Java. The Chinese Remainder Theorem was first introduced by the Chinese mathematician.... Read More

Euclidean Algorithm for GCD of Two Numbers in Java

By Vaishnavi Penumerthy

In this article, you are about to learn the implementation of the Euclidean Algorithm for finding the GCD of two given numbers in Java. The Euclidean Algorithm for finding the grea.... Read More

How to extract dates from a .txt file in Java

By Smitha S Maganti

In this tutorial, we are going to learn how to extract the dates from a text file. Our task is to print all the dates present in a given text file. We are going to use the concept .... Read More

Check if two Date Ranges Overlap or not in Java

By Ishika Koytekar

In this tutorial, we are going to learn to check if two Date Ranges Overlap or not in Java. There would be 4 possible overlaps. Consider two date ranges, start date be s1, the end .... Read More

Convert Date to String in Java

By Smitha S Maganti

In this demo, we will be learning how to convert Date to String using the Java programming language. The conversion of Date to String is called formatting. We make use of the class.... Read More