Instructables

How to make a HelloWorld application in Java Netbeans

Picture of How to make a HelloWorld application in Java Netbeans
In this tutorial I will show you how to make a simple HelloWorld application using a program called java netbeans, this takes little time and is quite easy. I also have a website now! Check it out here: homebrewbundle.com
 
Remove these adsRemove these ads by Signing Up

Step 1: Downloading

If you haven't yet, you will need to download and install the latest version of Java Netbeans. If you have you can skip this step. Click to run it and save it somewhere safe, like your installs folder.

Step 2: Getting Started

Picture of Getting Started
Open it up and create a new project and name it HelloWorld. We will use the rest of the default settings..

Step 3: Coding

Picture of Coding
Once it opens click underneath where it says public static void main(String[] args)  { click on the end of the notes, (the text in green)  hit return and type: System.out.println("Hello World!"); It is very important that you type this exactly, you can even copy and paste it if you want to.

Step 4: Explanation

Picture of Explanation
So basically what we just did was tell the system to print out "Hello World!" the ln after print is what keeps the text on separate lines, try taking out the ln and see what I mean. If you haven't yet, run your application and watch the magic unfold before your eyes. You can change the text "hello world!" to something else like "I love pancakes!" or "Go instructables! Really anything you want you can type there, I hope you liked this instructable and will check out my others, please leave a comment and tell me what you think! bye!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!