HOME
> System software
> Java: Introduction - How To Start Programming
Java: Introduction - how to start programming
Java is a simple beginner programming language. So if you want to start programming, Java is optimally recommended. First, you need to understand the basics of object-oriented programming, because Java is an object-oriented language.
How to get started with Java
Object-oriented languages like Java, C++ or C# try to simulate the environment and its problems in programs. Here, classes are used to guide the creation of an object. For example, if you have the class "Tree", the objects "Alder", "Poplar" or "Oak" can emerge from it. The respective objects can have completely different properties (attributes).- Download Open JDK and install the Java library on your computer. After that, download an IDE. The best one to use is Eclipse.
- Start Eclipse and create a new project by clicking New in the upper left corner and then Java Project. If this option is not displayed, click on "Other..." beforehand.
- Once you have created a new project, the first thing you need to do is create a class. To do this, right-click on the "src" folder and then click "New Class".
- Give the class a name. Preferably "Main." Now write the main method in it: "public static void main(String[] args) { }".
- Write between the curly braces "System.out.println("Hello World");".
- To start the program, just click on the little green triangle at the top.
- The bottom of the console should now show "Hello World".