Whenever I write a code that includes an ArrayUtil, it causes an unexpected error:
int[] values = ArrayUtil.randomIntArray(30, 300);
I use Eclipse to write my code, and there is always a red underline under “ArrayUtil”. What am I doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What package does your ArrayUtil belong to? No one can answer with certainty without that information.
Did you get it here? If yes, your signature looks right. You probably haven’t imported it yet, or the class isn’t in your CLASSPATH. Eclipse is telling you to correct one or the other.