Why adding an import line make other lines yellow or red as if there is some error?

Why adding an import line make other lines yellow or red as if there is some error?
I’m trying to add java.utils.Collections

yellow line means that there is a warning.

okay when you added a new import line, the possible cause of you getting a yellow line would be that there are lexographical issues in your imports, you can refer to this FAQ, in order to solve this :slight_smile:
https://forum.crio.do/t/how-do-i-resolve-checkstyle-issues-efficiently/7104/2

RED LINES: Errors
YELLOW LINES: Warning

If you’re getting yellow line in java.utils.Collections; this means you’re getting warning in this line. And It is because you’re not using Collections after importing.

For more details you can hover cursor over these (red or yellow lines). And read the error/warning description why they are there!

No, importing collections results in yellow lines in other imports and that results in red lines means errors in the code. I’m not able to complete module 4 because of this.

@Ayush_Agarwal As your issue seems to be resolved, I am closing this topic.

For further queries , you can create a new topic and continue there.