public static void main(String[] args) throws FileNotFoundException {
		
		Map<Integer, UserPreferences> treeMapUP = new TreeMap<Integer, UserPreferences>();
		Map<Integer, ItemPreferences> treeMapIP = new TreeMap<Integer, ItemPreferences>(); 

		readFile(treeMapUP, treeMapIP);
		System.out.println("Op basis van users\n");
		
		UserPreferences[] UP = new UserPreferences[treeMapUP.size()];  
		
		int index = 0;
		for(UserPreferences up : treeMapUP.values()){
			UP[index++] = up;
		}
		
		/*
		System.out.println("\nOp basis van items\n");
		for(ItemPreferences ip : treeMapIP.values()){
			System.out.println(ip);
		}
		*/
		
		Map<Integer, Map<Integer, Pearson>> pearsons = Pearson.getAllPearson(UP, 0.60);

		
		Recommendation.getRecommendation(1, pearsons);
		
		/*
		System.out.println("\nRecommendations voor user 1\n");
		System.out.println(Pearson.getRecommendations(treeMapUP.get(1), treeMapUP));
		
		/*
		for(UserPreferences up : treeMapUP.values()){
			testUserHasItem(up, 101);
			testUserHasItem(up, 103);
			testUserHasItem(up, 106);
		}
		/*
		ipArrayPointer = convertUPtoIP(UP, upArrayPointer, IP, ipArrayPointer);
		quickSortIP(IP, 0, ipArrayPointer);
		for(int i = 0; i < ipArrayPointer; i++){
			IP[i].sort();
			System.out.println(IP[i]);
		}
		*/
	}