PastebinPython counterpart in Java (Just reviewing Java syntax)