public static Ping onAddress(@NonNull String address) throws UnknownHostException {
  Ping ping=new Ping();
  InetAddress ia=InetAddress.getByName(address);
  ping.setAddress(ia);
  return ping;
}

public static Ping onAddress ( @ NonNull String address ) throws UnknownHostException { Ping ping = new Ping ( ) ; InetAddress ia = InetAddress . getByName ( address ) ; ping . setAddress ( ia ) ; return ping ; }
set the address to ping
