Posts from Java

Replace Particular Words In a Text File in Java

By Shubham Kumar

In this instructional exercise, you will see how to replace particular words in a text File in java. We will use the Java File Handling to perform this operation because to deal wi.... Read More

Get last n items from an array in Java

By Shakshi Parekh

In this article, we will see a program to Get the last n items from an array in Java. I hope, you already have some idea about array if you are familiar with Java. An array is a .... Read More

Find the most frequent element in an array in Java

By Shakshi Parekh

In this article, we will see a program to Find the most frequent element in an array in Java. I hope, you already have some idea about array if you are familiar with Java. but stil.... Read More

How to insert double quotes into a string in Java

By Shubham Kumar

In this tutorial, you will see how to insert double quotes into a string in Java. Sometimes you need to print those statements in a program where you may have double quotes printed.... Read More

How to Find Common Elements Between Two Arrays in Java?

By Shakshi Parekh

Before we go forward, we will learn about what is an array and how we can define it in java. Later we will see a program on how to Find Common Elements Between Two Arrays in Java. .... Read More

How to find unique elements in an array in Java

By Shakshi Parekh

So firstly we will learn about what is an array and how we can define it in java. Later we will see a program on how to find unique elements in an array in Java. An array is a data.... Read More

Convert RGB to binary image in Java

By Esmail Rahmani

In this tutorial, we will learn how to convert RGB to a binary image (black and withe image) in Java programming language. A binary image consists of only black and white in color..... Read More

How to pass Arrays to Methods in Java

By Shakshi Parekh

So lets first see what are methods in java. Then we will see a program on How to pass Arrays to Methods in Java. A method contains a block of code which we need to run at the time .... Read More