Question: Write a Java program To print the even numbers in an array. If the number is odd, the output should display this is not an

  1. Write a Java program
  • To print the even numbers in an array. If the number is odd, the output should display this is not an even number.

  • Reverse and print the elements in the array.(The value of the array at position 0; the value of the at position 1, etc)

  • Print the maximum and minimum elements in the array.
  • Search an element in the given array. If the element is found, print Element found, else print Element not found.

Make sure to always take the size of the array and elements in the array as input from the user.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!