The first program generally created in any first year Computer Science class. With this quick article, you'll be able to make the HelloWorld program.
Things You'll Need:
- Computer, Java Program(Netbeans, etc.), Desire to being programming in Java
- Step 1
You have to open the java programming program(Netbean, etc). Create a new java program. This is most likely done by going to the menu and clicking on the file. After creating it, if you are asked to name it, name it 'Hello World'.
- Step 2
You will then put in the following code:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
} - Step 3
Once the code is correctly inserted, all you will have to do is run the program. In the console, the text you have within the quotation marks should be displayed.
- Step 4
To further your Java programming, I suggest taking classes at a local college. These are great places to learn Java and meet people who have the same desire as you. A secondary suggestion would be to buy a book or two on Java. Make sure they are around your level of programming. Read and then put what you learn to use.
No comments:
Post a Comment