Simple Java program to ping hosts