๐ŸŽ‰ Special Offer !    Code: GET300OFF    Flat โ‚น300 OFF on every Java Course
Grab Deal ๐Ÿš€

Array Programs in Java  


Programs List

Easy Level Programs

  • 1 WAP to calculate the sum of all elements in a given array.
  • 2 WAP to count the number of even and odd elements in a given array.
  • 3 WAP to calculate the sum of even and odd numbers separately in a given array.
  • 4 WAP to count the number of positive, negative, and zero elements in a given array.
  • 5 WAP to calculate the average of all elements in a given array.
  • 6 WAP to copy the contents of one array into another array.
  • 7 WAP to swap two elements in a given array at specified positions.
  • 8 WAP to reverse the elements of a given array.
  • 9 WAP to search for a specific element in a given array.
  • 10 WAP to insert an element at a specified position in a given array.
  • 11 WAP to delete an element from a specified position in a given array.
  • 12 WAP to find the largest element in a given array.
  • 13 WAP to find the smallest element in a given array.

Medium Level Programs

  • 14 WAP to calculate the sum of all elements in a given 2D array.
  • 15 WAP to copy all elements of one 2D array into another 2D array.
  • 16 WAP to add two given matrices.
  • 17 WAP to subtract one matrix from another given matrix.
  • 18 WAP to compute the sum of the diagonals of a given matrix.
  • 19 WAP to check whether two given matrices are equal or not.
  • 20 WAP to find the transpose of a given matrix.