(String[]args)
| 44 | } |
| 45 | |
| 46 | public static void main (String[]args) |
| 47 | { |
| 48 | Scanner sc = new Scanner (System.in); |
| 49 | int m = sc.nextInt (); |
| 50 | int n = sc.nextInt (); |
| 51 | int arr[][] = new int[m][n]; |
| 52 | |
| 53 | for (int i = 0; i < m; i++) |
| 54 | for (int j = 0; j < n; j++) |
| 55 | arr[i][j] = sc.nextInt (); |
| 56 | |
| 57 | System.out.println (countIsland (arr)); |
| 58 | } |
| 59 | } |
nothing calls this directly
no test coverage detected