Leasha
Leasha

Reputation: 11

Java error code?

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

Upvotes: 1

Views: 810

Answers (2)

nos
nos

Reputation: 229088

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

import java.util.ArrayList;

Upvotes: 1

Jeff Foster
Jeff Foster

Reputation: 44706

You probably need to add the line

import java.util.ArrayList;

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

Upvotes: 8

Related Questions