Developing a Java program – Hello World

Published on July 2, 2015 by abundantcode

Filed under Java

Last modified July 2, 2015

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 0 (0 votes)

This article have been viewed 3454 times

There are lot of IDE options for the developers to create a java application . In this article , we will use Jet brains IntelliJ IDEA Community edition of the IDE to develop the Java console application.

Developing Java program in IntelliJ IDEA

1. Download and install Jet brains IntelliJ IDEA Community edition . Make sure you have the Java (JDK) installed on your PC as well.

2. Launch Jet brains IntelliJ IDEA and click File –> New –> Project.


3. In the New project dialog , select Java from the left sidebar and then select the project SDK and click Next.


4. Select the check box “select project from template” and select “Command Line App” and click Next.


5. Provide the Project Name , Project Location ad the Base package name and click Finish .


6. This would create the project in the IDE . Open the Main class file which can be found in the folder src –> <Name of the project> .


Lets start our Hello Java World code. Replace the file with the below code snippet . (Note : Check the package name if you have provided a different name when creating the project).

package com.abundantcode;

public class Main {

    public static void main(String[] args) {
        System.out.println("Welcome to Abundantcode's Java Program");

Let’s run the application . Press Ctrl +F5 to run the application. You will see the below output.


If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment


You might be Interested in these Posts

C Program to find the factorial of a number using Recursive function

Problem Write a program in C to find the factorial of a number using recursion and display the resu...

C Program to find the Sum of natural numbers

Problem Write a program in C to find the sum of natural numbers using recursive function. How to f...

C Program to display inverted full pyramid using *

Problem Write a program in C to print inverted full pyramid using * as shown below.The program shou...