|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
How can I create a new Instance of InetAddress class? I have not found any const
|
JavaFAQ Home » Networking

Question: How can I create a new Instance of InetAddress class? I
have not found any constructor...
Answer: Like this:
try { java.net.InetAddress addr =
java.net.InetAddress.getByName("javafaq.nu"); System.out.println(addr);
}
catch (Exception exc) {
// do smth here!!!
}
*******************************************
Our older tips: March 22, 2001 - October 21, 2002
READ
HERE
All published and not published on the site tips read
HERE
Printer Friendly Page
Send to a Friend
..
Search here again if you need more info!
|
|
|