Replaced Vectors with arrayLists, and StringBuffers with StringBuilders.