why my vscode is not runing programs in package. i am able to run them once I import package and run the program outside any package. But when I am trying to run them inside a package it is giving an error-:
Error: Could not find or load main class arraystring Caused by: java.lang.NoClassDefFoundError:
This is consistent with what you showed, but the results are different. I think the directory structure is inconsistent, or there is an error in the location of the terminal when you run the file.