Day+5+-+Java+IDE
Day+5+-+Java+IDE
Windows Installation:
-1. Download the installer from the [Oracle JDK downloads page]
(https://www.oracle.com/java/technologies/downloads/#java21).
-2. Execute the installer and follow the on-screen instructions.
-3. Copy the JDK directory path, typically `C:\ Program Files\Java\jdk-21`.
-4. Open 'Edit the system environment variables' from the start menu.
-5. Under Advanced tab Environment Variables System Variables → → → Path Edit.
-6. Create a new path and enter `
What is an IDE?
Definition: A Java IDE (Integrated Development
Environment) is a software application that provides
tools to facilitate writing and testing Java code.
Step 3: Launch IntelliJ IDEA and click on “Skip Import” if this is your
first installation.
Installing IDE
Step 1: Download the IntelliJ Community edition from [IntelliJ IDEA]
(https://www.jetbrains.com/idea/download/).
3
Step 3: Launch IntelliJ IDEA and click on “Skip Import” if this is your
first installation.
Step 3: Launch IntelliJ IDEA and click on “Skip Import” if this is your
first installation.
Step 3: Launch IntelliJ IDEA and click on “Skip Import” if this is your
first installation.
Creating a New Class: Right-click 'src' folder, select 'New' -> 'Java
Class', name it 'HelloWorld'.
IDE Feature: Code Editor
Creating a New Project: Launch IntelliJ IDEA, click 'New Project',
select 'Java', choose Project SDK, and finish setup.
Creating a New Class: Right-click 'src' folder, select 'New' -> 'Java
Class', name it 'HelloWorld'.
Creating a New Class: Right-click 'src' folder, select 'New' -> 'Java
Class', name it 'HelloWorld'.
Creating a New Class: Right-click 'src' folder, select 'New' -> 'Java
Class', name it 'HelloWorld'.
3
Syntax Highlighting
Creating a New Java Class: Right-click 'src' folder, select 'New'
-> 'Java Class', name it 'HelloWorld'.
3
Writing Code: Open 'HelloWorld.java' in the code editor to start
typing your Java code.
Syntax Highlighting
Creating a New Java Class: Right-click 'src' folder, select 'New'
-> 'Java Class', name it 'HelloWorld'.
3
Writing Code: Open 'HelloWorld.java' in the code editor to start
typing your Java code.
3
Writing Code: Open 'HelloWorld.java' in the code editor to start
typing your Java code.
3
Writing Code: Open 'HelloWorld.java' in the code editor to start
typing your Java code.
3
Writing Code: Open 'HelloWorld.java' in the code editor to start
typing your Java code.
Step 2: Start Typing Your Code: Define the class and the `main` method.
IntelliJ IDEA Code Completion
Step 1: Create a New Java Class: Right-click 'src' folder, select 'New' ->
'Java Class', name it 'ProfileCreator'.
Step 2: Start Typing Your Code: Define the class and the `main` method.
Step 2: Start Typing Your Code: Define the class and the `main` method.
Step 4: Initialize Scanner and Take User Inputs: Create a Scanner object
and take inputs for name, age, and hobby.
IntelliJ IDEA Code Completion
Step 1: Create a New Java Class: Right-click 'src' folder, select 'New' ->
'Java Class', name it 'ProfileCreator'.
Step 2: Start Typing Your Code: Define the class and the `main` method.
Step 4: Initialize Scanner and Take User Inputs: Create a Scanner object
and take inputs for name, age, and hobby.
Step 2: Start Typing Your Code: Define the class and the `main` method.
Step 4: Initialize Scanner and Take User Inputs: Create a Scanner object
and take inputs for name, age, and hobby.
Step 6: Print the Profile: Use `System.out.println` to print the greeting, age
message, and hobby message.
IntelliJ IDEA Code Completion
Step 1: Create a New Java Class: Right-click 'src' folder, select 'New' ->
'Java Class', name it 'ProfileCreator'.
Step 2: Start Typing Your Code: Define the class and the `main` method.
Step 4: Initialize Scanner and Take User Inputs: Create a Scanner object
and take inputs for name, age, and hobby.
Step 6: Print the Profile: Use `System.out.println` to print the greeting, age
message, and hobby message.
3
IntelliJ IDEA Compiler
Create a New Java Class: Right-click 'src' folder, select 'New' ->
'Java Class', name it 'MagicPotionCalculator'.
Run Your Program: Click the Run button to compile and run your
code.
IntelliJ IDEA Compiler
Create a New Java Class: Right-click 'src' folder, select 'New' ->
'Java Class', name it 'MagicPotionCalculator'.
Run Your Program: Click the Run button to compile and run your
code.
Check for Errors: IntelliJ will highlight errors and show messages,
like 'Error: ';' expected'.
IntelliJ IDEA Compiler
Create a New Java Class: Right-click 'src' folder, select 'New' ->
'Java Class', name it 'MagicPotionCalculator'.
Run Your Program: Click the Run button to compile and run your
code.
Check for Errors: IntelliJ will highlight errors and show messages,
like 'Error: ';' expected'.