ArrayUtil在Java中导致意外的错误 [英] ArrayUtil causes unexpected error in Java

查看:122
本文介绍了ArrayUtil在Java中导致意外的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我写一个包含一个ArrayUtil的代码时,它会导致意外的错误:

Whenever I write a code that includes an ArrayUtil, it causes an unexpected error:

int[] values = ArrayUtil.randomIntArray(30, 300);

我使用Eclipse编写我的代码,ArrayUtil下总是有一个红色的下划线。我做错了什么?

I use Eclipse to write my code, and there is always a red underline under "ArrayUtil". What am I doing wrong?

推荐答案

你的ArrayUtil是什么包?没有这个信息,没有人可以肯定地回答。

What package does your ArrayUtil belong to? No one can answer with certainty without that information.

您是否获得了这里?如果是,您的签名看起来正确。你可能还没有导入它,或者类不在你的CLASSPATH中。 Eclipse正在告诉你纠正一个或另一个。

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.

这篇关于ArrayUtil在Java中导致意外的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆