title: What does it mean to instantiate a class?
body: <p>This is the criteria:</p>
  
  <ul>
  <li>The nsLookup class is instantiated with a string that deﬁnes the host to be
  queried.</li>
  <li>The constructor instantiates the InetAddress object using this string.</li>
  <li>A method is designed to resolve the lookup query. The query can return multiple
  IP addresses if they exist. These should be returned to the GUI as an array of
  String objects for display.</li>
  </ul>
  
  <p>This is the code: </p>
  
  <pre><code>import java.net.InetAddress;
  import java.net.UnknownHostException;
  
  public class NsLookup {
  
    private InetAddress inet = null;
  
    public void resolve(String host) {
      try {
        inet = InetAddress.getByName(host);
  
        System.out.println("Host name : " + inet.getHostName());
        System.out.println("IP Address: " + inet.getHostAddress());
      }
      catch (UnknownHostException e) { 
        e.printStackTrace(); 
      }
    }
  
    public static void main(String[] args) {
      NsLookup lookup = new NsLookup();
      lookup.resolve(args[0]);
    }
  }
  </code></pre>
  
  <p>Please help me with examples if possible?</p>