Skip to main content
Java Tutorial
Part 2:
IntelliJ IDEA
IDE
Integrated
Development
Environments
 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
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
IntelliJ
IDEA
Powerful IDE for
Java Developers
 IntelliJ IDEA is a powerful IDE for Java developers
 Runs in Windows, Linux and macOS
What is IntelliJ IDEA ?
Installing IntelliJ IDEA Community
https://www.jetbrains.com/idea/download
 Download the IntelliJ IDEA installer and follow the instructions
Choose the free
"Community" edition
Running IntelliJ IDEA
 The project explorer
holds the project files
 The project source
code consists of .java
files (Java classes)
Projects in IntelliJ IDEA
Creating a
Console App
Create and Run
a Java Console App
in IntelliJ IDEA
 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
 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)
 If no JDK is still configured, you should configure it:
 Click [New] button and locate your JDK installation:
Configuring JDK in IntelliJ IDEA
 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
 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
 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!
 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"
Solution: Print "Hello SoftUni"
Solution: Print "Hello SoftUni" (2)
Submission in the Judge System
https://judge.softuni.org/Contests/Practice/Index/3252
 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
Creating a New Java Class
Solution: Greeting
 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
Solution: Customer Info
 …
 …
 …
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