(adsbygoogle = window.adsbygoogle || []).push({});
Are you a person that wants to start coding in Java, but you don't know how to start? Well here is a very basic way to help you get started.
What do I need?
[INDENT=2]
- What is BlueJ? - BlueJ is an integrated development environment (IDE) for the Java programming language, developed mainly for educational purposes
[/INDENT]
How to Begin?
- Once you have gotten BlueJ downloaded and installed make a new project in the Project option in the top left corner, you should see this
You must login or register to view this content.
- Then once you got all that completed, right click and chose new class and name your class
You must login or register to view this content.
- Next, right click on your class that you just created and click Open Editor
You must login or register to view this content.
- Once you get to the code editor, you can delete everything except this
public class Classname{ }
, so it should look like this
You must login or register to view this content.
- Then inside the class copy and paste this block of code into it
public static void AnyName(String[] args){ }
Looking like this
You must login or register to view this content.
- You will use that block of code a lot in java, so get used to using it. So once all that is done, we'll write a small simple line of code.
System.out.println("Hello World");
Put that code inside the brackets like below
You must login or register to view this content.
- Then after the code in put in, press compile and you should get a message saying, "Class compiled - no syntax errors" like in the picture above. Now once you get the message, go back to the main window that contains your class that you made in the beginning. Now right click on the class and select void AnyName(String[] args) like this
You must login or register to view this content.
Now that is the very basic first step to programming Java, so play around with it some more and learn some more! :p
I may add more in the future, but I hope I made this simple enough to start anyone off, with or without programming knowledge.
Enjoy, primetime43 :p