Java Array Programs

This section contains solved programs on arrays: Java one-dimensional programs, Java two-dimensional arrays, etc. with solved code, output, and explanation.

List of Java Array Programs

  1. Java program to find sum of array elements
  2. Java program to sort an array in ascending order
  3. Java program to sort an array in descending order
  4. Java program to multiply two matrices
  5. Java program to subtract two matrices (subtraction of two matrices)
  6. Java program to check sparse matrix
  7. Java program to find the common elements in two integer arrays
  8. Java program to find the common strings in two string arrays
  9. Java program to find missing elements in array elements
  10. Java program to find average of all array elements
  11. Java program to find differences between minimum and maximum numbers in an array
  12. Java program to move all zero at the end of the array
  13. Java program to delete a specific element from a one dimensional array
  14. Java program to print EVEN and ODD elements from an array
  15. Java program to merge two one dimensional arrays
  16. Java program to sort a one dimensional array in ascending order
  17. Java program to read and print a two dimensional array
  18. Program to create a two dimensional array fill it with given few characters in Java
  19. Java program to create a matrix and fill it with prime numbers
  20. Java program to print boundary elements of the matrix
  21. Java program to check whether a matrix is symmetric or not
  22. Java program to check whether a given matrix is Lower Triangular Matrix or not
  23. Java program to count strings and integers from an array
  24. Java program to remove duplicate elements from an array
  25. Java program to find second largest element in an array
  26. Java program to find second smallest element in an array
  27. Java program to find smallest element in an array
  28. Java program to count total positives, negatives and zeros from an array
  29. Java program to access elements of character array using for each loop
  30. Java program to find the length of an array
  31. Java program to find prime and non-prime numbers in the array
  32. Java program to search an item into the array using linear search
  33. Java program to search an item in an array using binary search
  34. Java program to search an item in an array using interpolation search
  35. Java program to sort an array in ascending order using selection sort
  36. Java program to sort an array in descending order using selection sort
  37. Java program to sort an array in ascending order using bubble sort
  38. Java program to sort an array in descending order using bubble sort
  39. Java program to sort an array in ascending order using quicksort
ADVERTISEMENT
ADVERTISEMENT




Comments and Discussions!




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.