Solved

gethostbyname()

Posted on 1998-12-14
2
358 Views
Last Modified: 2006-11-17
JDK 1.2, NT4.0 development platform, NT4.0 target platform

I need a JAVA code fragment to perform a gethostbyname() call.

Thank you in advance.
0
Comment
Question by:august97
2 Comments
 
LVL 16

Accepted Solution

by:
imladris earned 100 total points
Comment Utility
Is there something insufficient with the getByName method in the InetAddress class in the net package:

public static synchronized InetAddress getByName(String host) throws UnknownHostException;

0
 

Author Comment

by:august97
Comment Utility
Thank you!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now