Error showing in using List.size()

i wrote list.size() and its showng error… i used list.get function also but no error was shown. please help me.