에 배열에 데이터를 추가 루프가 완료되면 숫자가 덮어 쓰여지고 데이터의 마지막 실행 만 배열에있게됩니다.는 "이 동안 할"내가 가진 루프
long cursor = -1;
long[] fArray = new long[100000]; // more than enough space in array
IDs ids = twitter.getFollowersIDs(name, cursor); // start with first page of 5000 numbers
do
{
ids = twitter.getFollowersIDs(name, cursor);
fArray = twitter.getFollowersIDs(name, cursor).getIDs(); // this gets Array with 5000 numbers every time until "empty"
cursor = ids.getNextCursor(); // jump to next array with 5000 new numbers
} while (ids.hasNext());
답을 잘못 추가하면이 답변의 문제점을 알 수 있습니까? 감사. – Bananeweizen
우수하고 정확하게 필요한 것. 그것은 도움을 주셔서 감사합니다 :) – Kris