Which software is needed with JDK 7 to write this code?

import java.net.*;

class OreillyByAddress {

  public static void main (String args[]) {

    try {
      InetAddress address = InetAddress.getByName("204.29.207.217");
      System.out.println(address);
    }
    catch (UnknownHostException e) {
      System.out.println("Could not find 204.29.207.217");
    }

  }

}

Recommended Answers

A text editor?

Jump to Post

All 3 Replies

A text editor?

as long as yo have compiled it you can run it.

Ok , I will try it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.