use equals for number equality checking
remove final for static methods
simplified boolean if statements