Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.net.NetworkInterface;

public class Main {
    static public void main(String args[]) throws Exception {
        NetworkInterface ni = NetworkInterface.getByName(args[0]);
        System.out.println(ni);
    }
}