Week 4/39

Exercises on JOOS

  1. Write and execute tiny JOOS programs that:
    • print "Hello World";
    • sort a list of integers; and
    • implement simple binary search trees.
  2. (Aarhus students only.) Compare JOOS to the BETA language. Which concepts are similar? How difficult would it be to translate a JOOS program into a BETA program?
  3. Look at the java.awt.* classes. What does the class hierarchy look like? Discuss how this is supposed to work. Try to understand AwtDemos/ScrollableScribble.java.