Convert The Following Java Code Into Haskell Code

Convert The Following Java Code Into Haskell Code