Java InetAddress.isMCOrgLocal()
Syntax
InetAddress.isMCOrgLocal() has the following syntax.
public boolean isMCOrgLocal()
Example
In the following code shows how to use InetAddress.isMCOrgLocal() method.
import java.net.InetAddress;
/* ww w .ja v a 2 s . c o m*/
public class Main {
public static void main(String[] argv) throws Exception {
InetAddress address = InetAddress.getByName("web.mit.edu");
System.out.println("Name: " + address.getHostName());
System.out.println("Addr: " + address.getHostAddress());
System.out.println(address.isMCOrgLocal());
}
}
The code above generates the following result.