public static boolean isIPv6(String ipAddress){
  if (ipAddress == null || ipAddress.isEmpty()) {
    return false;
  }
  Matcher ipv6Matcher=IP_V6_PATTERN.matcher(ipAddress);
  return ipv6Matcher.find();
}

public static boolean isIPv6 ( String ipAddress ) { if ( ipAddress == null || ipAddress . isEmpty ( ) ) { return false ; } Matcher ipv6Matcher = IP_V6_PATTERN . matcher ( ipAddress ) ; return ipv6Matcher . find ( ) ; }
determines if ip address is ip version 6 .
