Please enable JavaScript to use CodeHS

TCH323BE2 Introduction to Java Programming 1

Basic Java

Learn the basics of the Java programming language. This unit covers printing, variables, types, as well as how to use the basic control structures in the Java language.

Lessons

1.1 Printing in Java

  • Printing in Java
  • Printing in Java
  • Hello world
  • Printing Multiple Lines
  • Welcome Program
  • +1 more

1.2 Variables and Types

  • Variables and Types
  • Variables and Types
  • Variables
  • Our First Integer
  • Answering Questions

1.3 User Input

  • User Input
  • User Input
  • UserInput
  • About You
  • Poetry

1.4 Arithmetic Expressions

  • Arithmetic Expressions
  • Arithmetic Expressions
  • Calculator
  • Tricky Java
  • Area of a Rectangle
  • +1 more

1.5 Casting

  • Casting
  • Casting
  • Casting
  • Casting to an Int
  • Casting to a Double
  • +3 more

1.6 Booleans

  • Booleans
  • Booleans
  • Boolean Example
  • Ice Cream

1.7 Logical Operators

  • Logical Operators
  • Logical Operators
  • Light Switch
  • Roller Coaster

1.8 Comparison Operators

  • Comparison Operators
  • Comparison Operators
  • Grade Range
  • Triple Double

1.9 For Loops

  • For Loops
  • For Loops
  • The For Loop
  • Repeat 1000 Times
  • General For Loop
  • +6 more

1.10 While Loops

  • While Loops
  • While Loops
  • While Loop Countdown
  • Even Numbers - While Loop

1.11 If Statements

  • If Statements
  • If Statements
  • Negative Numbers
  • Even and Odd
  • Find the Minimum

1.12 Loop-and-a-Half

  • Loop-and-a-Half
  • Loop-and-a-Half Quiz
  • Running Average
  • Guess the Number

1.13 Short-Circuit Evaluation

  • Short-Circuit Evaluation
  • Short-Circuit Evaluation Quiz
  • Pizza Slices
  • Divisibility

1.14 De Morgan's Laws

  • De Morgan's Laws
  • De Morgan's Laws Quiz
  • De Morgan AND
  • De Morgan OR
  • Amusement Park

1.15 Strings

  • Strings
  • Strings
  • Comparing Strings
  • Three Strings
  • Basic Java Exercises Badge

1.16 Unit Quiz

  • Intro Java Unit 1

Courses that include this module