Problems with an ArrayList declaration.

Hello everyone, i have a problem with an ArrayList.
First of all, can an arrayList contain primitive kind of data such as int or char?
And why it gives this error " '(' or '[' expected " to the following line of code?