List.size() error

in my program list.size() is showing error whereas list.add() and list.get() are running properly. i have checked its not a mistake like list or List. please help.

Exactly what is the error displayed on the console ?