| Last Part | Next part |
|---|---|
| <- #02 Variables and Arithmetic Operators | #04 All Loops + more Math -> |
With our current knowledge, it could look like this:
Mmmmh... please.... don't do this this way. There is an easier method for this. You can place after the text or the variable a + (PLUS) or a & (AND) to connect it with an another text or a variable. This could look like this (In my example I used + (PLUS))
Note: Did you see, how I made a cast at the end around x and y? This means that Java has to calculate it together and then put it to the text.
Here is a table, so it is easier to understand:
| Escape Sequence | What it does |
|---|---|
| Insert a tab | |
| New line | |
| Print a normal ' | |
| Print a normal " | |
| Print a normal \ |
In this example I will exaggerate a bit, so please sit down a bit and really try to understand what stands there on this image (This is also really important learning a programming language, to understand the code or just the "logical" thinking):
This code will output this here:
That was all I wanted to say to you. The next part I will write about loops and create some difficult tasks you have to challenge with.
Support this project by upvote this post and commenting ^^
| Last Part | Next part |
|---|---|
| <- #02 Variables and Arithmetic Operators | #04 All Loops + more Math -> |