code: public static InetAddress[] getInetAddressArray( String key, String delim, InetAddress[] def ) {
          String p = getProperty( key );
          if( p != null ) {
              StringTokenizer tok = new StringTokenizer( p, delim );
              int len = tok.countTokens();
              InetAddress[] arr = new InetAddress[len];
              for( int i = 0; i < len; i++ ) {
                  String addr = tok.nextToken();
                  try {
                      arr[i] = InetAddress.getByName( addr );
                  } catch( UnknownHostException uhe ) {
                      if( log.level > 0 ) {
                          log.println( addr );
                          uhe.printStackTrace( log );
                      }
                      return def;
                  }
              }
              return arr;
          }
          return def;
      }
docs: Retrieve an array of <tt>InetAddress</tt> created from a property
  value containting a <tt>delim</tt> separated list of hostnames and/or
  ipaddresses.