449450451452453454455456457458459
line = kvFile.get("friends"); if (line != null) { String[] tokens = line.split(","); for (String token : tokens) { if (!token.isEmpty()){ Resident friend = getResident(token); if (friend != null) resident.addFriend(friend); } } }