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).
  1. Download Open JDK and install the Java library on your computer. After that, download an IDE. The best one to use is Eclipse.
  2. 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.
  3. 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".
  4. Give the class a name. Preferably "Main." Now write the main method in it: "public static void main(String[] args) { }".
  5. Write between the curly braces "System.out.println("Hello World");".
  6. To start the program, just click on the little green triangle at the top.
  7. The bottom of the console should now show "Hello World".

By Quiteria Mitman

Charging the Surface Pro 6 via a powerbank - how to do it :: Flap MacBook: External Monitor
USEFUL LINKS