Java Socket connection getHostName

I am testing on
What I want is the following.
When connecting to, you get,
Getting when connecting to
My etc/hosts file configuration is as follows.…

Packages in java not compile

Good morning everyone!
I did a project x but all my files were out of order so I decided to group them by folders.
The problem arises when I try to compile, since in th…