Write Java like NodeJS