/*
** file: BasicDNS.java
** purpose: This interface defines the services required of
** any DNS.
*/
public interface BasicDNS {
// update(domain, ipa) adds (or replaces)
// the IPA for this domain to the DNS database.
public void update(String domain, String ipa);
// lookUp(ipa, domain) returns the IPA associated
// with this domain, or null if it is not found in
// the database (or not returnable for legal reasons,
// such as blacklisting).
// The first argument, ipa, is the IPA from which this
// request originated.
public String lookUp(String ipa, String domain);
}
• Implement a class that implements the interface, using the fastest suitable class from the
collections framework to store and look up domain IPAs.
• Implement a test program that exercises your DNS class. It should have a simple, interactive
console user interface.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment