Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ing the java.net. InetAddress class perform the following: Determine your host's (the computer executing your Java application): 1. Host name 2. Domain name 3. P

image text in transcribed
image text in transcribed
ing the java.net. InetAddress class perform the following: Determine your host's (the computer executing your Java application): 1. Host name 2. Domain name 3. P address For the domain names below, determine: 4. The full set of IP addresses for each. 5. Host name 6. Each domain name's fully qualified domain name Determine the host name for these IP addresses: a. 45.45.45.45 b. 9.9.9.9. The Java application must: - Use code provided. - Properly catch and report exceptions handled. DO NOT throw an exception in the main0 method. - Accept domain names as command line arguments. For Eelipse: Run Configurations, Arguments tab, then populate Program arguments with: verizon.com hulu.com public static void main(String[] args) \{ final int REQUIREDPARAMETERS=5; byte[] address ={220,0,0,1}; byte anotherAddress ={9,9,9,9}; if (args. length != REQUIREDPARAMETERS) \{ System.err.println("domain names"); System.exit(-1); \} for (String domainName : args ) \{ \} /l using InetAddress satisfy requirements \}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions