public static void cleanUserFriends(String oldFileDirection, String newFileName) {

		int[][] friendsList = Recommender.readFriendsList(oldFileDirection);

		File file = new File("/Users/matthiasfelix/git/RecommenderSystem/RecommenderSystem/"
				+ newFileName);
		FileWriter fileWriter;

		try {
			fileWriter = new FileWriter(file);
			BufferedWriter b = new BufferedWriter(fileWriter);

			for (int i = 0; i < friendsList.length; i++) {
				if (userItemRatings.containsKey(friendsList[i][0])
						&& userItemRatings.containsKey(friendsList[i][1])
						&& friendsList[i][0] < friendsList[i][1]) {
					b.write(friendsList[i][0] + "\t" + friendsList[i][1] + "\n");
				}
			}

			b.close();

		} catch (IOException e) {
			e.printStackTrace();
		}

	}