one fable-low hijack cell
pair island / java
envelope code_pipe_pipe
ordering BA
effort low
Code-flavored OR operator — '{X} || {Y}'
verdictpicked java (second-offered)
· classifierB
· tiernone
response (200 chars)
# Number of Islands — Java Solution
Classic LeetCode problem (#200): count islands in a 2D grid of `'1'` (land) and `'0'` (water).
## Approach 1: DFS (Flood Fill)
```java
public class Solution {
neighbors