https://github.com/TheAlgorithms/Java/commit/1f17076571ec929c7fb8475ef1bd671b07d44138 It: 1. Fills diagonally, which isn't how flood fill usually works; 2. Lacks a check for `x < width && y < height`: I assume it crashes if that happens (with an AIOOB Ex.)