Summary of Level 0 - 1

"Hi, I'm Diego. I'm a robot just like you, but I was produced at a factory in Havana, Cuba."

"Hi, Diego!"

"How has your training been going so far?"

"This is the coolest programming course I've ever had. No, even cooler: the best course of my life, period. It was better than anything I could have imagined."

"That's how we roll."

"Are all the lessons this interesting?!"

"You bet. They get even better. Boring lessons are so 21st century! Can you imagine writing in chalk on a blackboard! Nothing had changed since the 1400s. I suppose there were dinosaurs still roaming the streets then."

"I agree. What's next?"

"You're moving to the next level. 17 to go to master Java Basics and of course, move forward with further studying!"

Today you learned about:

  • Variables
  • Displaying text on the screen
  • int and String types
  • The difference between compiling in Java and other languages
  • Adding comments in code and why we need them


"Of course, the levels that follow won't be as easy as this one, but they will grow more difficult gradually. The same goes for the exercises."

"It's like going to the gym: we add weights little by little, and 6 months later, the beginner can do 220 lbs on the bench press."

"Cool! I want them both. The bench press and a job!"

"Well, since you're so motivated, here are a couple more tasks, Don-Diego style."

Java Syntax, level 0, lesson 8
Bugs and features
Someday you'll be a real programmer, and you'll have your very own (almost) tester. Of course, this is still quite a ways off, but it's never too early to learn: for now, you can remember a phrase that will be useful when talking to your tester! Let's take the screen output command and zealously display: "It's not a bug - it's a feature".
Java Syntax, level 0, lesson 8
No comments needed
Not all comments are equally helpful! Sometimes they appear in the code when a programmer isn't sure about some line and wants to return to it later. For example, in this task we have one unnecessary comment that is making the program work incorrectly. Uncomment one line to get the correct result!
Java Syntax, level 0, lesson 8
2 + 3 = 5
It's obvious that 2 + 3 = 5, right? As it turns out, this isn't always the case: our test program is incomprehensible, because some genius programmer added extra lines. Restore balance to the world: comment out some lines to display "2 plus 3 is equal to 5" on the screen.