ICT 214 Tutorial Week 1
-
Copy the program examples into an editor, save, compile and
execute them
-
Make small changes to the programs, e.g. print different messages
-
Draw UML diagrams for the programs
-
Run the
GetInetInfo
program with various DNS names,
IPv4, IPv6 addresses and invalid addresses. Comment on the results.
-
Look at the JavaDoc for the class
NetworkInterface
.
This has a method getByInetAddress(InetAddress addr)
.
Add code to the program GetInetInfo.java
to create
a NetworkInterface
object for that address.
Use methods which return a String
such as
getName()
to display information about the
NIC.
-
The UML diagrams for a home network were too simplistic.
Draw some more complete ones.
Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Sun Feb 17 20:51:15 EST 2008
Copyright ©Jan Newmarch