Answer to Question #54922 in Java | JSP | JSF for Jax

Question #54922
/*
** file: SafeDNS.java
** purpose: This interface defines the services required of
** to block banned sites.
*/
public interface SafeDNS {
// blacklist(ipa) adds thus IPA to a blacklist.
// A blacklisted IPA will not be returned by the
// lookUp method.
2
public void blacklist(String ipa);
}

• Make your DNS class also implement this interface, using the fastest suitable class from
the collections framework to store and look up IPAs in a blacklist.
• Extend your test program so that sites may be blacklisted and we can test that their IPAs
are not being returned.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS