I have some Twitter data and I am trying to work out which Tweeter posts the least amount of tweets in the data. I have created a Treemap called Tweeters to hold the values in. My code is as follows:
TreeMap<String, Tweeter> tweeters = new TreeMap<String, Tweeter>();
// read in CSV files using external library opencsv
reader = new CSVReader(new FileReader(fileName),',', '"');
while ((nextLine = reader.readNext()) != null) {
String screenName = nextLine[6];
String tweetID = nextLine[0];
Tweet t = new Tweet(tweetID);
Tweeter x = new Tweeter(screenName);
// not sure where to go from here
}
I'm pretty new to Java so any help would be much appreciated. Thanks guys