accepted haha  , in Java