Input size of array using Scanner class (got error)

Why yellow line under scan? I have imported util package also.
After running this code nothing appears on console.
What to do?