Security codes in Fiji are made up of 4 digits. How many different 4-digit codes are possible

i)If the first digit cannot be zero.

ii)If the first digit cannot be zero and digits cannot be repeated.

eefefef