import java.util.Scanner;
class ScannerTest{
public static void name(String[] args) {
Scanner scan = new Scanner(System.in);
short a[][] = {{1,2,3},{4,5,6},{7,8,9}};
short b[][] = new short[3][3];
System.out.println("Enter the matrix B:");
for (int i=0; i<3; i++)
{
for (int j=0; j<3; j++)
{
b[i][j] = scan.nextShort();
}
}
short c[][] = new short[3][3];
int n = a.length;
for (int i=0; i<3; i++)
{
System.out.println();
for (int j=0; j<3; j++)
{
for (int k=0; k<3; k++)
{
c[i][j] +=(a[i][k]*b[k][j]);
}
System.out.print(c[i][j] + " ");
}
}
}
}
When I compile and run the code it says that the main method is not found in the class ScannerTest, please define the method as public static void main(String[] args). I do not know how to fix this would much appreciate if someone could point out what's wrong.