ArrayList<> cannot be resolved to a type

You probably need to add an import statement.

import java.util.ArrayList;

This goes after your package declaration. This let’s the system know what an ArrayList is and what methods it has available.

Hope that was it!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)