Week 2 Outline

  • Questions on Assignment 1
  • Javadoc API to the BagOWords ADT
  • Code for this week
  • Comparing strings in Java (use equals and compareTo methods)
  • Finding the maximum number in an array
    • Solution using iteration (loop)
    • Solution using recursion
  • Using recursion to find all permutations
  • Anagram (permutations)
  • Example ADT: Marble Jar class
  • Example ADTs: Card class and DeckOfCards class
  • Assignment 2
  • Review BagOWords implementation (as time permits)