ICT 214 Tutorial Week 5

  1. Compile (one of) the Echo Client programs. Test it against the echo server on my laptop at 192.232.137.70
  2. Use the method boolean equals(String str) in class String to test equality of strings (e.g. if (str1.equals(str2)) then ...
  3. Modify the echo client so that each line starts with a command
    1. echo1 line of text
    2. echo2 line of text
    to echo the line once or twice
  4. 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
    1. 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