import java.io.*;
import java.net.*;
import java.util.*;//for Eneumeration
//javac Test_NetInterface.java
//java -classpath . Test_NetInterface
public class Test_NetInterface {
public static void main(String[] args) throws Exception
{
Get_All ga = new Get_All();
ga.method_1();

}
}
class Get_All
{
public void method_1()throws Exception
{
try {
Enumeration getNetFaces = NetworkInterface.getNetworkInterfaces();
while (getNetFaces.hasMoreElements()) {
NetworkInterface ni = (NetworkInterface) getNetFaces.nextElement();
System.out.println(ni);
}
}
catch (Exception e) {
System.out.println("Could not resolve");
}
}
}