Anybody who's bored, try running this code and pasting the output here:
Code:
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
public class UniqueId
{
public static void main(String[] args)
{
try
{
Enumeration e = NetworkInterface.getNetworkInterfaces();
NetworkInterface n;
while (e.hasMoreElements())
{
n = (NetworkInterface)e.nextElement();
System.out.println(n.hashCode());
}
System.out.println("Getting unique ID...");
}
catch (SocketException e)
{
e.printStackTrace();
}
}
}
Does it display the exact same value(s) each time you run it?
The output should be like
Code:
2130706433
-1062731612
Getting unique ID...
Would be greatly appreciated; thanks