Java error code?

2019-08-03 21:40发布

问题:

What does error: ArrayList cannot be resolved to a type mean in dr java?

回答1:

You probably need to add the line

import java.util.ArrayList;

To your source file. Post the code to be sure.



回答2:

It usually means you have forgotten to import the class. Near the top of you java file, put

import java.util.ArrayList;



标签: java import