Renamed sockets to match C example and formatted code

I renamed the sockets in the hello world java example to match the C example. I've also taken the liberty of reformatting the code (using intellij's default settings).