I just started Java. I was initially using NetBeans to code and it works. But my teacher is insisting that we use a text editor and run it through Powershell. I'm getting a "Could not find or load main class" error with this code.
public class a10{
public static void main(String[] args){
System.out.println("Hello World");
}
}
When I run it on Netbeans, there are no errors, but I'm unable to run it on Powershell. Can someone tell me what's wrong and how I would fix it