Simple Output#
This is the first thing we're going to try making ourself! Processing (and pretty much all other programming languages and environments) have some way of giving you some kind of text output. In Processing, this happens to be println
, and it's used like this:
println
is short for "print line".
Try it!
Try putting that line into your processing window. Just that line, nothing else. Run it!
The result should look like this:
Why is this useful?#
Printing out some piece of text this way can be used in many ways. The first programs commonly literally printed output on some kind of printer. Terminal programs exist to this day and are still very useful. We're more commonly using print to check on our programs ("oh, what's in that variable?" or "hey, if it prints 'Hi', then it MUST have been this far along the program").
Modify it!
Alter the text Hello, World
and put something else in its place! Make sure you keep the quotes ("
).
Add more println
commands.