Tranvick

Untitled

Jun 13th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.net.*;
  2.  
  3. class app {
  4.     public static void main (String args[]) throws UnknownHostException {
  5.         InetAddress Address = InetAddress.getLocalHost();
  6.         System.out.println(Address);
  7.         Address = InetAddress.getByName("codeforces.ru");
  8.         System.out.println(Address);
  9.         InetAddress SW[] = InetAddress.getAllByName("vk.com");
  10.         for (int i = 0; i < SW.length; ++i) System.out.println(SW[i]);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment