Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import ArrayUtils on Intellij

So when i try to do this:

import org.apache.commons.lang3.ArrayUtils;

Intellij highlights apache in red and says "cannot resolve symbol 'apache'" I also get an error when my code runs:

Error:(3, 32) java: package org.apache.commons.lang3 does not exist
Error:(27, 28) java: cannot find symbol
  symbol:   variable ArrayUtils
  location: class com.company.Deck

How can I get it to recognize ArrayUtils?

Sorry if this is a very basic question.


1 Answers

You have to download libraries first, then import http://commons.apache.org/proper/commons-net/download_net.cgi

like image 144
George Avatar answered Dec 05 '25 09:12

George



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!