Chapter 1
Introduction. Variables. Data Types. Scanner.
Objectives:
When you finish this module, you
- will define the following terms: JDK, JRE, Javadoc, variable, statement, comment, data type, loop, package;
- will not be afraid of Java;
- will not be afraid to ask help;
- will list the main differences between Python and Java;
- will name Java advantages;
- will be familiar with the basic Java language syntax and program parts;
- will explain how Java stores primitive data types;
- will write, compile and run simple Java programs;
- will print the output to the console;
- will break your back to make the program run without any syntax errors and solve home assignments independently;
- will feel irresistible and killing desire to install JDK 13 and IntelliJ on your own computer.
Topics
- 1.1 Introduction to Java
- 1.2 Install programs
- 1.3 First program
- 1.4 Explanation of the first program
- 1.5 Variables
- 1.6 Data types. Strings. Primitive data types
- 1.7 Operators in Java
- 1.8 Math class
- 1.9 Scanner
- 1.10 Tasks
NB! Watch the video in youtube if you need the subtitles!
Alternative materials
- in English:
- H. Schildt. Java - The Complete Reference: Chapters: 1, 2, 3 (excl. arrays), 4
- B. Kjell. Introduction to Computer Science using Java: Chapter 8-19
- in Estonian: here
- in Russian:
- Г. Шилдт. Java 8. Полное руководство: Chapters: 1, 2, 3 (excl. arrays), 4
- itProger. Уроки Java для начинающих: (Chapters: 1-8)