Hello, I don't understand why IntelliJ didn't want me to write just String s and wanted me to add java.lang. before it.
Do you know why?
What should I do to just do it like before?
Thanks,
Alexandre
Why did I need to write "java.lang.String" instead of just String?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Lisa
21 February 2022, 13:39useful
It's easier to answer when knowing the code ;)
Into the blue... maybe you declared a String class in the current package by accident (or an inner class with that name).
+2