“Hello World” for the Millionth Time
A journey of a thousand miles begins with a single step.
— Lao Tzu
I’m assuming you know that Java is a programming languages so we’ll start from there. There are different types of programming languages, every thing from just using different combinations of 1’s and 0’s in different patterns to clicking and dragging pictures onto a line. Some languages may be more useful than others. Java sits somewhere in the middle, it uses words numbers and other characters(1,2,3,/,%,{,},;,…) and is extremely useful. It’s a general purpose langues which allows for the code to be ran on different computers. So for example you can create a calculator program that can run on either a Macintosh computer, Windows computer, or even a computer with a Linux operating system all using the same code. As long as the machine ruining the code has JVM(Java Virtual Machine), which is a virtual machine that translate the Java code to compiled Byte-code that the computer using can then read. Heck, Java can also be used to create Android application and much more. To do some programing you’ll what to install an IDE (integrated development environment), I use Intellij, but use what you what.
Just like every other introduction to computer programming we’ll start off with a simple “Hello World!” introduction, where we can at least learn about class, methods, statements, and a few other specific things.

Above you can see the code that creates the text “Hello World”. only really takes 5 lines of code
- public class Intro1HelloWorld {
- public static void main(String [] args){
- System.out.println(“Hello World”);
- }
- }
That first line of code creates a class for the code to me written inside of. The next line is a method known as the main method, which we’ll learn a lot more about in the future. But to keep it simple its demanded to run any java code, you can have as many other classes and methods as you please but you’ll always need the main method to run the code. The third line is inside of the main method and is a statement that will display a String inside of the parentheses. The fourth line is a closing bracket for the main method and the fifth line is the closing bracket for the class and the end of our code.
All of that stuff you saw starting with “//” were only comments and has no effect on the code, you can also block out multiply line of code by placing “/*” and “*/” around the text that not intended as code. this is incredibly nice so you can make notes for both yourself and others about what and how your code is intended.
To have a light understanding of classes and methods we should learn a bit about OOP or Object Oriented Programming but that’ll be another post another time. For a quick explanation classes are how objects are created, the common example is classes are the blueprints and objects are buildings. The same blueprints can be used to make different houses multiple times, and those houses may have different properties such as the type of roofing, siding, or the color of paint. Those “houses” may be different from one another but they all came from the same “class”, the only difference is the variables of each building where assigned different values from one another while the structural integrity stays the same.
Methods are the foundation of classes(and probably the wall, roof, plumbing, and everything else lol). Methods allow for the same code to be used multiply times without needing to retype every time by just calling the method in other parts of the code. They can also return a variable but they don’t have too, but that’s something we’ll be going into another time. Since here the only example that we have is the main method I wouldn’t expect one to acquire a full understanding of methods and all that they can provide.
Statements are all the information that creates the methods. System.out.println(“Hello World”); was the only statement inside of the Intro1HelloWorld class, and this statement is held inside of the main method, when this code is ran it will display the words “Hello World” on the screen.
Now this is just a light introduction to the extremely massive world of computer programming. There is still a bit to learn before you’re programming video game, or making AI software for the stock market. But every time you advance your skill set it becomes so much sweeter wright code.



