Chapter 23

Java

“I love coffee, I love tea, I love the Java Jive and it loves me.”

—Ben Oakland and Milton Drake

In this chapter:

– Processing is really Java.

– If we did not have Processing what would our code look like?

– Exploring the Java API.

– Some useful examples: ArrayList, and Rectangle.

– Exception (error) handling—try and catch.

– Beyond Processing?

23.1 Revealing the wizard

Perhaps, all along while reading this book, you have been thinking: “Gosh, this is so awesome. I love programming. I am so glad I am learning Processing. I can’t wait to go on and learn Java!” The funny thing is, you do not really need to learn Java. Pulling back the curtain of Processing, what we will discover is that we have been learning Java all along. ...

Get Learning Processing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.