hpilo

Chapter6_Func_Ex9

Dec 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. /*
  2. =====================================================
  3. chapter 6: Functions
  4.  
  5. Ex9:
  6. =====================================================
  7. */
  8. public class MyProgram {
  9.  
  10. public static int max0Rectangle(int matrix[][]){
  11. int size=0;
  12.  
  13. return size;
  14.  
  15. }
  16. public static void main(String[] args) {
  17.  
  18. int matrix1[][]={{0,0,0,0,0},{0,0,0,0,0},{0,0,1,0,0},{0,0,0,0,0},{0,0,0,0,0}};
  19. int matrix2[][]={{0,0,0,0,0},{0,0,0,0,0},{0,0,0,0,0},{0,0,0,1,0},{0,0,0,0,0}};
  20. int res;
  21.  
  22. res=max0Rectangle(matrix1);
  23. System.out.println(res);
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment