Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello All, I am a B.tech final year student and working on an online Java Course. We are presently working on building the following instantiation code:
public class NameDriver
{
public static void main (String[] args)
{
//Instantiation
Name myName = new Name("Scott", "David", "Mitchell");
Name myName1 = new Name("David", "Mitchell");
Name myName2 = new Name("Mitchell");
Name noName;
System.out.println("myName: " + myName.toString());
}
}
I am using online java compiler from here and getting this error:
//Constructor Methods
public Name(String f, String m, String l)
{
first = f;
middle = m;
last = l;
}
public Name(String f, String l)
{
first = f;
middle = "";
last = l;
}
public Name(String l)
{
first = "";
middle = "";
last = l;
}
public Name()
{
first = "";
middle = "";
last = "";
}
public String toString()
{
return first + " " + middle + " " + last;
}
}
The result when I execute is the error message “Error: Could not find or load main class”.
The names of the Java files duplicate the name of the Main Class, so that doesn’t seem to be the problem. Can anyone suggest me the right path of this program?
BYUKUSENGE1122
efc7faea746444dc908905614d8f9e
a9b6ec20aac54b7fb8b665177d1414
013e7d0b6b004201b23bba10789eaa
LittleTurquoiseSeal
Sen Wang
4d93f2f07ce540cbb84c4d97e835bc
Dani
d06b3a356d374ee6a0a12809b4783f
Gavin Lasco
14ed7f5e756d40a9971bfff98e543a