O'Reilly logo

Learn to Program with Minecraft Plugins, 2nd Edition by Andy Hunt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Variables and Objects Live in Blocks

Variables live inside of blocks. We’ve seen and been using blocks all along: blocks are the bits of code written between braces—{ and }.

Java is a “block structured” programming language. It’s descended from a family of languages going back to the ancient Algol of the 1960s, a line that extends from the mother of all programming languages, C, its children C++ and Objective-C, and down to its half-cousin-stepchild Java. After Java was around, Microsoft came out with C#, which is (totally coincidentally) nearly identical to Java. All of these languages work more or less the same way.

In these languages, you work with blocks of code. Things like if statements work with blocks of code. Objects we define (like ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required