# Part 1 - Learn Basic Java

{% hint style="success" %}
We highly recommend using [w3 schools Java tutorial](https://www.w3schools.com/java/) to learn more & [w3 schools exercises](https://www.w3schools.com/java/exercise.asp) to test your Java knowledge
{% endhint %}

## Introduction

Hello, welcome to this Java basics course.

{% hint style="info" %}
In this part of the course, we will be using replit as it is quick and easy to get started.
{% endhint %}

## Hello world in Java

```java
public class Main {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}
```

To print somthing to the concole in java you use `System.out.println();` and pass through a piece of text in string format in the brackets.

Now of course in Java you can NOT just type the print function by itself as it will cause an error as in Java you would need to put your code into the main class, we will explain this in more detail later on.

## Variables

## w3 schools Java exercises

Try [w3 school's Java exercises](https://www.w3schools.com/java/exercise.asp) to test your Java knowledge
