Probability calculator accepts 2 arrayLists (ham, spam) and prints frequencies and smoothed probabilities for each word