warming up your workspace

Java Foundations through Backend Java

Never written code before? Start here. You will learn the basics of Java, methods, variables, types, decisions, loops, and arrays, with simple backend examples. By the end you are ready for Project 1.

First functions

  1. A method that returns a value
  2. Give a method an integer input
  3. Return the average of two numbers
  4. Returning text
  5. Store an intermediate result in a local variable

Variables and types

  1. Name and return a calculated value
  2. Update a local variable in order
  3. Keep the fractional part when dividing integers
  4. Convert a double to an int by truncating
  5. Name a method for the calculation it performs

Making choices

  1. Return a Boolean comparison
  2. Choose a returned value with if and else
  3. Pick the larger of two values
  4. Classify a value into three bands
  5. Combine conditions

Doing it again

  1. Sum the integers from 1 to n
  2. Count values that meet a condition
  3. Add a fixed amount repeatedly
  4. Stop a search at its first match
  5. Visit every row and column with nested loops

Arrays and reuse

  1. Read one item from an array
  2. Find the largest value in an array
  3. Use one method from another
  4. Calculate a weighted mean
  5. Capstone: summarize and classify

Explore the full field