title: java program written in Vscode IDE having different package is not executing properly
body: <p>I am getting the following error in VScode IDE .
  Kindly help me with the Solutions related to VScode </p>
  
  <p>I created a package named as <strong>test</strong> in visual studio code .
  The program written in that package failed to execute 
  , program is :</p>
  
  <pre><code>package test;
  public class Example{
  public static void main(String args[])
  {
      System.out.println("HELLO");
  }
  }
  </code></pre>
  
  <p>It throws an  <a href="https://i.stack.imgur.com/vfkOJ.png" rel="nofollow noreferrer">error</a>
  the same program works completely fine when placed in the default package <a href="https://i.stack.imgur.com/Vkhpo.png" rel="nofollow noreferrer">here it is </a>
  kindly help me with the package working or help me if there is any setting in vscode which has to be setup </p>