Now that you’re comfortable using basic Java commands, it’s time to move into the Java console environment.
- This program extends
Karel. This tells the program that it’s going to use the console instead of a Karel grid world.
- The text is printed to the console with the
Variables allow us to store information such as numbers, words, or true/false expressions. A variable can be thought of as a box that stores information inside. In Java, variables are composed of three things: a name, type, and value.