Lesson 2: Classes, variables, main method and print statement

Welcome to your first Java lesson

You're going to dive into Java and learn how to create a class (the blueprint of your program), declare variables (to store data like numbers), write the main method (where your program starts), and use System.out.println to print messages to the screen.

You will have learned how to create a small calculator program that adds two numbers and prints the result to the screen by the end of this lesson!

Complete and Continue  
Discussion

0 comments