When your code is compiled, the compiler needs to work out what each and every identifier in your code means. As the compiler is going through the code it will find something and know what to do with it or not. Cannot find symbol error relates to the identifiers and means that Java cannot figure out what the “symbol” means.
- You need to check import declarations on class file header.
- Remember that Java is a case sensitive language. ArrayList is different from Arraylist