Learn about development environments (IDE) and JDK and how to use IntelliJ IDEA to create Java projects, write Java code, and compile, run and debug Java projects.
3. To write programs, we need an IDE
For Java
IntelliJ IDEA
Eclipse
NetBeans
For C# Visual Studio / Raider / VS Code
For Python PyCharm / Eclipse / VS Code
For JavaScript WebStorm / VS Code
Programming Languages and IDEs
4. Integrated Development Environments (IDE)
Integrated Development Environments (IDE)
simplify software development
IDEs save time and eases the process of coding
Writing, running, testing, and debugging the code
In our Java lessons, we shall use IntelliJ IDEA Community
Free, open-source IDE from JetBrains
https://jetbrains.com/idea
6. IntelliJ IDEA is a powerful IDE for Java developers
Runs in Windows, Linux and macOS
What is IntelliJ IDEA ?
7. Installing IntelliJ IDEA Community
https://www.jetbrains.com/idea/download
Download the IntelliJ IDEA installer and follow the instructions
Choose the free
"Community" edition
11. Create new Console Application in IntelliJ IDEA: [New Project]
[Java] [Template Command Line App] [Finish]
Creating a Console Application in IntelliJ IDEA
Leave the
package empty
12. JDK (Java Development Kit) is the Java platform for developers
Java runtime (JVM + libraries) + Java compiler + tools
Download and install the latest JDK
https://oracle.com/java/technologies/downloads (Oracle)
https://adoptium.net (Eclipse Adoptium)
JDK (Java Development Kit)
13. If no JDK is still configured, you should configure it:
Click [New] button and locate your JDK installation:
Configuring JDK in IntelliJ IDEA
14. In Java programs, commands are written in main(String[] args)
Between the opening and closing curly brackets { }
Press [Enter] after the opening bracket { and type your commands
The code of the program is written with indentation
Writing Programming Code in IntelliJ IDEA
15. To start the program, press [Ctrl + Shift + F10]
If there are no errors, the program will be launched
The result will appear in the console (terminal window):
Starting the Program in IntelliJ IDEA
16.
17. To learn coding, you need to write code!
Watching videos gives you only knowledge
Solving the exercises, gives you experience and
practical skills
Learn by Doing
Write and submit the
coding exercises!
18. Write a Java program, which:
Prints "Hello SoftUni" on the console
Submit your solution in the SoftUni judge:
https://judge.softuni.org/Contests/Practice/Index/3252
Problem: Print "Hello SoftUni"
21. Submission in the Judge System
https://judge.softuni.org/Contests/Practice/Index/3252
22. Write a Java program, which:
Reads from the console your name
Prints "Hello <<name>>"
Submit your solution in the SoftUni judge:
https://judge.softuni.org/Contests/Practice/Index/3252
Problem: Hello Name
25. Write a program, which reads customer's first name, last name
and email and prints the read data in the following format:
Customer: <<fname>> <<lname>> (<<email>>)
Submit your solution in the SoftUni judge:
https://judge.softuni.org/Contests/Practice/Index/3252
Problem: Customer Info
28. …
…
…
Next Steps
Join the SoftUni "Learn To Code" Community
Access the Free Coding Lessons
Get Help from the Mentors
Meet the Other Learners
https://softuni.org
Editor's Notes
Hello, I am Svetlin Nakov from SoftUni and I am here for the second part of my free Java coding tutorial.As you know, my free code lessons are not just video tutorials. They combine videos with many live examples and practical exercises, where you write code after each lesson. So, you learn Java coding through practice: by writing Java code. And you send your code to our online judge system, and you get an automated grading.Remember that coding is a skill, which should be practiced. To learn coding, you should write code, every day, for a long time. Watching tutorials is not enough. You should code!Today I continue with my Java programming tutorial for absolute beginners. This is the second lesson from my Java tutorial, so if you are a newbie, you should first go through the previous lesson.In this lesson, I will talk about development environments (the so-called IDEs), which are used by developers to write, compile, run and debug code. I will teach you how to use IntelliJ IDEA, the most popular IDE for Java developers. I will show you how to install and run IntelliJ IDEA, how to create a console-based app, how to write code in the code editor, how to use the auto-complete to speed up coding, how to run your programs and even how to debug your code.Together we will solve a few coding exercises to practice these new skills.OK, let's start. Let's learn how to use IntelliJ IDEA. It's easy. Just follow my instructions.
First, I would like to explain you what is IDE: "integrated development environment", or just coding environment, and how it helps writing code, compiling and running the code, and debugging (which means to step through the code line by line).
In this section I will show you IntelliJ IDEA.
It is the world's most popular development environment for Java.
Java developers love it, because it makes Java coding a pleasure.
I will tell you about IntelliJ IDEA, the free community edition we will use, and how to download and install it.
In the next section I will demonstrate how we create and run console-based Java apps in IntelliJ IDEA.
I will show you how to create new Java project, choose the project type, give a name for the project, create a class with a "main" method, write some code in it, and finally, run the project.
I will also explain what is JDK (the Java development kit) and how to download and install it.
Now let's move on to the exercises.
Remember, that the only way you can learn to code is by coding. This is what you should do immediately after the lesson.Follow the exercises, write your code to solve the practical problems I give you for this lesson, test your solutions to make sure they work as expected, and send them for grading to the judge system.
You will find the problem descriptions and the link to the judge system at softuni.org.
Let's do it. Let's code. Let's solve a few practical problems.
Remember that the most important activity in learning how to code is "coding"!Maybe, I repeated myself several times today, but it is really important to do and submit your exercises and to practice what you have learned today.
Programming is a skill, now knowledge. To learn a skill, you should practice.Now it's your turn. Do your exercises!
Did you like this lesson? Do you want more?You could subscribe to my YouTube channel and join our learners' community at softuni.org.Get free access to the practical exercises and the automated judge system.Get free help from mentors and meet other learners.Join now!SOFTUNI.ORG