用其他程序包编写的Java程序无法正确执行

我在Visual Studio代码中创建了一个名为test的包。 用该软件包编写的程序无法执行 ,程序是:

package test;
public class Example{
public static void main(String args[])
{
    System.out.println("HELLO");
}
}

It throws an error the same program works completely fine when placed in the default package here it is kindly help me with the package working or help me if there is any setting in vscode which has to be setup