62,612
社区成员
发帖
与我相关
我的任务
分享
while ((oneLine = reader.readLine()) != null)
{
int idx = oneLine.indexOf('\t');
for(int i = 0; i < idx; i++)
{
strBuffer1.append(oneLine.charAt(i));
}
for(int i = idx + 1,len = oneLine.length(); i < len; i++)
{
strBuffer2.append(oneLine.charAt(i));
}
FollowerId = Integer.valueOf(strBuffer1.toString()).intValue();
FolloweeId = Integer.valueOf(strBuffer2.toString()).intValue();
strBuffer1.delete(0, strBuffer1.length());
strBuffer2.delete(0, strBuffer2.length());
oneLine = null;
//构建哈希表
ArrayList value = map.get(FollowerId);
if(value == null)
{
ArrayList arrayList = new ArrayList();
arrayList.add(FolloweeId);
map.put(FollowerId, arrayList);
}
}