It is not object-oriented This Java code is very procedural, imperative and not elegant at all. Please, try to refactor it and improve. You're welcome to create new classes, new methods, anything. Just make sure it still builds. When ready, please submit a pull request.
Quer arriscar? :)
É uma boa pra aprender, hein?
Manoel Pedro Jr
Você acredita que este código ficará menos complexo quando terminarem o refactoring dele?