After that go to C:\MinGW\bin and copy the file path
Now open the environment variable and select path and click edit and then new and paste the file path that you copied earlier and click ok and then ok again.
Now open a new terminal and type gcc --version and g++ --version to check if everything is working fine.
While installing check Add Python 3.11 to PATH and click customize installation and then select everything and click next and then select install for all users and click next and then click install and then close.
Now open a new terminal and type python --version and pip --version to check if everything is working fine.
Create a folder where you will write all of your Java programs. After that copy the file path
Open vscode and press ctrl + shift + p and type create java project and select the first one.
Select No build tools and paste the file path that you copied earlier and then type your project name and press enter. Now you are ready to go. You can also select other options if you want like Maven or Gradle etc.