ICT 214 Tutorial Week 5
-
Compile (one of) the Echo Client programs.
Test it against the echo server on my laptop at 192.232.137.70
-
Use the method
boolean equals(String str)
in class
String
to test equality of strings
(e.g. if (str1.equals(str2)) then ...
-
Modify the echo client so that each line starts with a command
-
echo1 line of text
-
echo2 line of text
to echo the line once or twice
-
Use the static method
parseInt(String s)
of class Integer
to turn a string into an
integer. Then add another command to the echo client
-
echon n line of text
to echo the line n times
Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Tue Mar 18 13:37:03 EST 2008
Copyright ©Jan Newmarch