Please enable JavaScript to use CodeHS

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #}

Chapter 1

Primitive Types

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 1.1 Introduction
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 1.2 Why programming? Why Java? Environment Set Up Writing Hello World Hello World Println vs Print Printing Multiple Lines Check Your Understanding Exercise: ASCII Art
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 1.3 Variables and Data Types Variables and Types Primitive Types Numeric Type: Char Type: Boolean Type: Reference Types String Type Final Keyword Naming Variables Variables Using Final Swapping Two Values Check Your Understanding Exercise: Answering Questions
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 1.4 Expressions and Assignment Statements Arithmetic Expressions Addition Operator Subtraction Operator Multiplication Operator Division Operator Types of Division Arithmetic Exceptions Modulus Operator Operation Precedence Calculator Temperature Conversion Tricky Java Check Your Understanding Exercise: Fractions
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 1.5 Compound Assignment Operators Evaluating What is Stored in a Variable Arithmetic Shortcuts All Functions Calculator Increase/Decrease by 1 Check Your Understanding Exercise: Work Shift
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 1.6 Casting and Range of Variables How Casting Works Casting an Integer to a Double Casting a Double to an Integer Rounding Using Casting Division with Casting Numerical Ranges Casting Casting Order of Operations Implicit Casting Min and Max Values of Integers Check Your Understanding Exercise: Movie Ratings