// forall users user
int userCount = 0;
for (User user : myUsers) {
double num = 0, den_l = 0, den_r = 0;
// System.out.println("comparing! song: " + i.getID() + " and " + j.getID());
User other = otherUsers.getUser(user.getID());
if (other == null) {
continue;
}
if (user.rated(i) && other.rated(j)) {
// System.out.println("if (user.rated(i) && user.rated(j))! song: " + i.getID() + " and " + j.getID());
userCount++;
double iTmp = user.getRating(i) - user.getAvgRating();
double jTmp = other.getRating(j) - other.getAvgRating();
num = iTmp * jTmp;
den_l = iTmp * iTmp;
den_r = jTmp * jTmp;
}