Programming Java for Absolute Beginners

About: I make stuff sometimes

Hello there! My guess is that if you've stumbled across this instructable you want to learn to program using java! (Or at least I hope so.) Anyway, say you know absolutely nothing about java (Or close to nothing, or you just want to learn more) then this instructable is perfect for you! If you enjoy this instructable, please leave some feedback! I also have a website now! Check it out here:

In this instructable I will:
-Help you download, and install the required tools
-Teach you the very basics of syntax, and some code
-Help you create an actual program

Now, I will be entering this in the Make-To-Learn Youth contest, so I am going to answer some questions

What did you make?
I created a short, but useful guide to getting started with programming java. I started by learning it myself, then decided to teach others.

How did you make it?
I used Java netbeans to create a program, then copied the code and taught how it works.

Where did you make it?
I made this project at my house. But I learned to program at a local computer science club.

What did you learn?
Before making this project, I taught myself about java, and got accustomed to Netbeans' layout. 

If you get stuck, or your program isn't working, you can comment below with your question. Ready? Let's go!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Downloading the Tools

First go here and download "java netbeans" it is the IDE we will be using. IDE stands for Integrated Development Environment, meaning it is the program where you will do all your coding. Once you've downloaded and installed it, open it up.

Step 2: Understanding the IDE

When Netbeans opens you will be greeted by the IDE. Now, I know it may seem like a lot to take in, but let me break it down.
At the top of the screen you should see many different icons, the first is "New File" You can use this to create classes and other files, but we will get into this more later. The second icon you will probably use the most, this is the "New Project" icon. The next icon is the "Open Project" icon. You can use this if you made an application on a different computer, and want to open it on a different computer. The next is "Save All", in Java Netbeans you can have multiple projects open at one time, and this allows you to save them all at once. Next is "Undo" and "Redo", they are pretty self-explanatory. The next five are "Build" which compiles your project so you can create an executable of it (A distributable file). Next is "Clean and Build" This cleans all the files in your project. After that is "Run" use this to Run your projects code. Those are the only icons you really need to know. On the right you should see a projects tab, this is where you can access the files of all your applications. Now, that you understand a little more about this IDE, let's get started making this application!

Step 3: Building Your Application

Let's start with a very simple application, the famous Hello World application will do. Now, what we are going to do is have the computer say "Hello World!". To do this create a new project, Click "Next", and call the Project "HelloWorld", leave everything else default and click "Finish". Now, You should be greeted with this code:

* To change this template, choose Tools | Templates
* and open the template in the editor.
package helloworld;

* @author Your name here
public class HelloWorld {

     * @param args the command line arguments
    public static void main(String[] args) {
        // TODO code application logic here

Highlight "// TODO code application logic here" and type System.out.println("Hello World!");

Now, I'm going to explain what we just did. We just told the system to print out "Hello World!" ln means line, so it will print all the words on the same line, try taking it out and see what happens! If you want some more advanced techniques try typing "sout" and press the tab key.

Step 4: Wrapping Up

I really hope you enjoyed this instructable and took something away from it. Please leave some feedback below if you enjoyed, I really appreciate it! Feel free to check out my other projects if you would like to know a little bit more advanced code. If you would like to see more, just leave a comment. Have a nice day!

1 Person Made This Project!


  • Instrument Contest

    Instrument Contest
  • Make it Glow Contest

    Make it Glow Contest
  • STEM Contest

    STEM Contest

7 Discussions


2 years ago

Thanks sharing java topic which helps beginners..


3 years ago

Thanks for your informative article. Java is
most popular programming language used for creating rich enterprise, desktop
and web applications. Keep on updating your blog with such informative post.


3 years ago

my link works


3 years ago

it(The link) does not work. plz change it.


3 years ago

hi, i downloaded the tools but it seems it doesn't works. please help! thanks!