Sunday, March 25, 2012

Program Completed!

After hours of long and hard work I finally got my program to work. When I previously posted I only had the size and the getCommonTweets method to write which didn't seem like too much work initially. I started with the size method first because I thought it would be the easier of the two to write and I was right when I thought that because it literally only took me one line of code to correctly write the size method because I only needed to get the number of tweets for a given key. However, the getCommonTweets method posed some problems for me. It required me to think in a really weird way and I had to draw the problem out to be sure I wrote it correctly. I had to consult the Java API Documentation page several times because I knew that by using one of those methods that it would make writing the method easier. After that long and hard process I finally got the getCommonTweets method to work with all the test cases I put it against.

No comments:

Post a Comment