title: How to run a single java file which contains main inside in IntelliJ
body: <p>I want to just compile and run a simple java file in IntelliJ, I already did these steps as others, who had this issues.</p>
  
  <ol>
  <li>Setup the Project Structure to have the correct Content Root for Modules.</li>
  <li>Setup the Run/Debug Configurations.</li>
  </ol>
  
  <p>Here are the snapshots to my codes, my Project Structure and my Run/Debug Configurations
  <a href="https://i.stack.imgur.com/WmfBp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WmfBp.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/4o2oJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4o2oJ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/axEpK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/axEpK.png" alt="enter image description here"></a></p>