Mr. Satyabrata has Published 355 Articles

How to find all leaders in an array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:30:25

4K+ 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 leaders in an array. An element is a leader if it is greater than all the elements to its right side. Let’s ... Read More

Compare Two Different Files Line by Line in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:28:39

5K+ Views

In this article, we will compare two different text files which are saved in our system. We will check line by line of each text file, by comparing those we can identify the similarities and differences. Let’s see how we can do it by using the Java programming language. To ... Read More

Find First and Last Word of a File Containing String in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:09:40

6K+ Views

As per the problem statement, we need to find the first and last word of the given String. 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 String “Java is a well-known high-level, class-based ... Read More

Separate Odd and Even Elements into Two Separate Arrays in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:05:28

9K+ 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 separate odd and even elements into two separate arrays and print the result. A number is said to be an even number if ... Read More

Read All the Emails Present in a File in Java

Mr. Satyabrata

Mr. Satyabrata

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

329 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

1K+ 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

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 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

4K+ 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

1K+ 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

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 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

Advertisements