This is simple and for beginners who want to learn Java, we will be covering all the things that you should know about Java and how to use Java. We try to understand all the basic concepts and codes to design some mini projects.

Before starting, you should know that sometimes you may find complexity, so it is advised for you to follow step by step. Also, Java doesn’t have pre-existing libraries, and it’s a competitive coding as well as fast language. So let’s begin the learning.

Install Java Development Kit

This is the first step. You need to download and install Java on your system. It is available across major platforms, including Windows, Mac, and Linux. Click on the download button below to go to the JDK Download page and download Installer

according to your system preference.

   Download JDK (Java Development Kit)

If you encounter any errors while installing or having problems with the current version, you can downgrade or use the JDK Beta.

  • After download the JDK package, Double-Click on it to initiate the installation.
  • Confirm the UAC (User-Access-Control) by pressing the Yes, and then click on Next.
  • After that, It show the installation Location you can either change or let it remain default.
  • Click on Next, and it will start processing installation.
  • To finish, Click on Close.

After the installation is complete, you must download an editor to begin writing code. There are multiple editors available to use, like eclips, apache, IntelliJ, and more. We will be using Intellij as Java Editor.

Download and Install IntelliJ

There are two different versions available. One is for Web and Enterprise development, and since we are just starting, we will be downloading the Community. The Ultimate version is paid, and the Community version is available for free. It is available across platforms, including Windows, Mac, and Linux, based on the preference to download IntelliJ.

   Download IntelliJ IDEA

  • Double-Click on it to start installation, and then click on Run.
  • Click on Yes on UAC to allow unknow source installation.
  • Click on Next, and then it will ask for Destination folder either you can change or let it remain by-default.
  • Choose the Java, and then click on Next.
  • It will star installing, Once it finish you can start using IntelliJ.

Setup IntelliJ

  • Open the IntelliJ, and then It open the T&C after reading it check the checkbox for the “I confirm that I have read and accept the terms of this user agreement.”
  • Then, Click on Continue and then on the Data Sharing page choose Don’t Send.
  • on Next Screen it Open the IntelliJ.

Create Project

Now we are start designing new project, So let’s begin.

  • Click on New Project.
  • It will open the New Project, Give your Project a Name, Choose the Destination Folder to save your Project, Choose the Language Java, and  Build System IntelliJ, JDK will automatically selected based on the installation package. Don’t Forget to check the checkbox for Add Sample Code.
  • Click on Create, and it will open the editor page. **Generally IntelliJ referred as IDE
  • Close the Tip, and Then to start writing code you have to open the File named Main.
  • On the Left-Sidebar, expand the Src directory and Under you find Main.
  • You can also place it under Package Name, For this Right-Click on the Src and Choose New, then Package.
  • Give it a name, Like com.androiodgreekjavalearning. *All the related files are stored under a package, like a book shelf in a library having a specific book.

  • Now, Drag the Main file under package area.
  • Click on Refactor to move and confirm your action.
  • Once your file is done moving, or you can let it remain under SRC, there shouldn’t be any issue.
  • Double-Click on Main File appear under Package or Src directory. This is the file that is created to write code.

So, Now you have finish Setup and basic things to complete before writing code. You can learn more about learning with the following link mentioned down below. Jump to your learning accordingly.

We are open to feedback, we try to improve the article by updating do comment and share you feedback in the comment section down below.