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;