Friday, September 20, 2013

How to make a HelloWorld application in Java Netbeans




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

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

Step 3: 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

          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!

No comments:

Post a Comment