Code is giving error on import statements

import statements are giving “import does not support a name type” error. Why is this happening?

hello @aakashsehrawat5087
which language u r using ?
java or python?

please ssave ur code here-> https://ide.codingblocks.com/
and share the link with me.

I am using Java.

here is the code

cb ide dont support all classes.
define a main class and then put ur code within it.

here is the template
image

ur should write ur code within this class only

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.