Thanks for replying, but as I see you are just repeating me. My question is: when pronouncing 'University' sounds like 'Yu' and so 'a' and not 'an' should precede it, then why should 'U' be part of the vowels in the first place.
There are times when u acts as expected (i.e., exactly like a vowel) and times when it acts like a consonants. For example:
a unicorn
an unintended benefit
It happens with consonants too:
a house
an hour
The letter u most often acts like vowel. It only acts like a consonant at the start of some words. That's not enough to drag it into the consonant category.