Some imports not working in clash of code

I have noticed this many times that some imports do not work in the IDE.
I don’t remember in which puzzles they were but recently I got this error in clash of code.

I wanted to use the StringUtils.isNumeric() method to parse numbers in a string, and imported import org.apache.commons.lang3.StringUtils; but the IDE showed error in this import and I could not use the method.

I did not even type the import myself. I just typed the method name and the IDE inserted the import itself and still there was error importing.

How can I import such methods in the IDE?

No third-party library is allowed to import in CG.

To test is a String representing a number (integer), you can use Integer.parseInt(“123”) and catch exception, or use some libraries under java.text.*, or use regex.

1 Like