0% found this document useful (0 votes)
8 views2 pages

2D Array Java Programs

The document lists 20 slightly challenging 2D array programs in Java, each represented by a class name. The programs cover various operations such as calculating diagonal sums, rotating matrices, checking for identity and magic squares, and more. Each program is designed to enhance understanding of 2D arrays and their manipulations in Java.

Uploaded by

Soumya Ghosal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

2D Array Java Programs

The document lists 20 slightly challenging 2D array programs in Java, each represented by a class name. The programs cover various operations such as calculating diagonal sums, rotating matrices, checking for identity and magic squares, and more. Each program is designed to enhance understanding of 2D arrays and their manipulations in Java.

Uploaded by

Soumya Ghosal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

20 Slightly Challenging 2D Array

Programs in Java
1. Diagonal Sum Difference
public class DiagonalSumDifference { ... }

2. Rotate Matrix 90 Degrees Clockwise


public class RotateMatrix90 { ... }

3. Reverse Each Row


public class ReverseEachRow { ... }

4. Count Prime Numbers in Matrix


public class CountPrimesMatrix { ... }

5. Identity Matrix Check


public class IdentityMatrixCheck { ... }

6. Magic Square Check


public class MagicSquareCheck { ... }

7. Sort Rows Individually


public class SortRowsMatrix { ... }

8. Interchange First and Last Row


public class SwapFirstLastRow { ... }

9. Print Diagonals
public class PrintDiagonals { ... }

10. Boundary Elements Display


public class BoundaryElements { ... }

11. Maximum Row Sum


public class MaximumRowSum { ... }

12. Symmetric Matrix Check


public class SymmetricMatrixCheck { ... }

13. Upper and Lower Triangular Matrix


public class TriangularMatrix { ... }
14. Swap Diagonals
public class SwapDiagonals { ... }

15. Zero-One Matrix Check


public class ZeroOneMatrixCheck { ... }

16. Frequency of Elements


public class FrequencyOfElements { ... }

17. Add Two Matrices


public class AddTwoMatrices { ... }

18. Sparse Matrix Check


public class SparseMatrixCheck { ... }

19. Vowel Count in Char Matrix


public class VowelCountCharMatrix { ... }

20. Pascal Triangle in 2D Array


public class PascalTriangle2D { ... }

You might also like