You can. But you must qualify the class, as in java.utils.ArrayList
If you write the declaration using generics, as in, java.utils.ArrayList the variable line will turn pink, since the parser we use for checking the syntax does not support generics. But the compilation will work.
If you write just java.utils.ArrayList the variable line will not turn pink.