Since humans have trouble remembering numbers like this, these addresses are mapped to names like "www.blackstar.com" or "star.blackstar.com". However it's the numeric address that's fundamental, not the name.
Java's java.net.InetAddress
class represents such an address.
Among others it contains methods to convert numeric addresses to host names
and host names to numeric addresses.
public static InetAddress getByName(String host)
throws UnknownHostException
public static InetAddress[] getAllByName(String host)
throws UnknownHostException
public static InetAddress getLocalHost()
throws UnknownHostException
public boolean isMulticastAddress()
public String getHostName()
public byte[] getAddress()
public String getHostAddress()
public int hashCode()
public boolean equals(Object obj)
public String toString()