public ArrayList<Integer> commonUser(){
    	ArrayList<Integer> user_group = new ArrayList<Integer>();
    	for(int i = 0; i < ratings1.length; i++){
    		if(ratings1[i] != 0 && ratings2[i] != 0)
    			user_group.add(i);
    	}
    	return user_group;
    }