btw, thank you again oops lol
Code:
String lastName = "";
Map<String, Integer> postCount = new LinkedHashMap<String, Integer>();
for(int i = 1;i < 27;i++){
ForumThread thread = Spam.ForumAPI.thread_View(27967, i, 50);
ArrayList<Post> posts = thread.posts;
for(Post post : posts){
String name = post.username;
if(!name.equals(lastName)){
lastName = name;
if(postCount.containsKey(name)){
int newCount = postCount.get(name) + 1;
postCount.put(name, newCount);
}
else{
postCount.put(name, 1);
}
}
}
Thread.sleep(1000);
}
System.out.println(postCount.toString());
just counted the last 37 by hand