UF 06: JAVA¶

Primitive types¶

Alta Formazione Professionale - ITT Marconi

January 2021

Unit 1 - Getting Started and Primitive Types¶

will follow the book course.csawesome.org

if too slow: Some challenges for the 'pros'

1) (Java Development environments)

2) Why Programming? Why Java?

3) Variables and Data Types

primitive data types:

Credits: table from Bruce Eckel, Thinking in Java

4) Expressions and Assignment Statements

5) Compound Assignment Operators

6) Casting and Ranges of Variables

7) ... plus Recap and Exercises

1.2. Why Programming? Why Java?¶

1) First Java Program

2) Print Commands

3) Syntax Errors and Debugging

4) Comments

5) Debugging Challenge

1.3. Variables and Data Types¶

1) What is a Variable?

2) Data Types

3) Declaring Variables in Java

4) Naming Variables

1.4. Expressions and Assignment Statements¶

1) Assignment Statements

2) Adding 1 to a Variable

3) Input with Variables

4) Operators

5) The Modulo Operator

1.5. Compound Assignment Operators

1.6. Casting and Ranges of Variables