Twitter API with a Logic applied to it
问题 I am a beginner in Java programming and I have an assignment where I need to get posts from the Twitter API and implement a logic using Eclipse Java Photon. I managed to get the Twitter posts using Twitter 4j API but I am stuck of how to calculate the average words per tweet for the last 5 tweets. Can anyone help me understand how to do this please ? 回答1: You can get tweet contents and then split them into words. After that you can get average word count by counting the words and dividing it