Mr. Satyabrata has Published 387 Articles

Read All the Emails Present in a File in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 10:56:33

141 Views

As per the problem statement we need to find all the Emails present in the file. Let’s explore the article to see how it can be done by using Java programming language. To Show You Some Instances Instance-1 Suppose there is given paragraph and it contains many different email ids ... Read More

Increment Negative and Decrement Positive Numbers by 1 in an Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 15:25:40

910 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to increment all negative numbers by 1 and decrement all positive numbers by 1. Let’s explore the article to see how it can be ... Read More

How to Remove Odd Numbers from Array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 15:20:49

2K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to delete or eliminate the odd numbers present in the array and print the even array. Note − The array must be an integer ... Read More

How to Remove Even Numbers from Array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 15:18:40

3K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to delete or eliminate the even numbers present in the array and print the odd array. Note − The array must be an integer ... Read More

Print the Elements of an Array Present in Odd Positions in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:48:46

745 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the array elements which are present in the odd position in an array and print them. A number is said to be ... Read More

Print Even Positions Elements from an Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:47:00

2K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the array elements which are present in the even position in an array and print them. A number is said to be ... Read More

Get the Most Frequent Element in an Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:42:43

16K+ Views

In Java, Array is a non-primitive data type which stores values of similar data type. As per the problem statement we have to detect which element is repeated maximum times in an array for maximum number of times and print its frequency. An array can contain duplicate values as well. ... Read More

How to Find the Union of Two Arrays in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:37:07

5K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the union of two arrays. Union refers to joining together whereas union of arrays refers to the new array combining all unique ... Read More

Find the Middle Element of an array in JAVA

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:30:00

11K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the element which is present in the middle of the array. If the array contains odd number of elements, then you will ... Read More

How to Find the Largest Palindrome in an Array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:27:34

2K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the largest palindrome in an array. A number is said to be a palindrome number if after reversing the same number it ... Read More

Advertisements