Install a compiler and write your first program.
Eclipse
The first program: Hello World
The hello world program in Eclipse
Learn to find and remove errors from a Java program.
2 types of errors
Breaking a program
Errors
Finding logic errors
Good habits for learning to program
Learnthe naming conventions and types, declare, and use variables.
Variables
Drill on type
Variable Names
Drill on names
Declaring variables
Using variables
Assignment statements
Learn to use the arithmetic operators, know the order of operations, and convert from algebra to code.
Operators
The % operator: remainder
Finding Dozens
Order of operations
Calculate Grade
Algebra to Code
Learn to use some of the math functions such as square root
Finding the square root
How many busses?
Be able to use the Boolean operators to compare and use the logical operators for and and or.
Boolean operators
Boolean Expressions
Drill on Boolean expressions
Logical operators: &&, ||
Rats in a maze
Alter the sequence of execution using the if/else control structure.
The syntax of if else
Swap variables to put in order
Calculate tip based on service
Find a letter grade
Using nested if/else to find letter grade
Test if a number is a valid month
Who gets a discount?
Print season based on month
Use the switch/case control structure
Calulate tip based on service:Y or N
Print season from month
Learn to use the conditional operator ?
Print pass or fail
Tests if a month is valid with variable
Displays if a month is valid
Prints two numbers in order
Finds the smallest
Calculate tip using conditional
Learn to use the for loop control structure for repetition.
Read 3 numbers without loop
Read number and add to total 3 times
A for loop to read 3 numbers
Endless Loops
Ask how many numbers
For loop counts from 10 down to 1
For loop counts by 5
Multiply to generate power of 2
For loop to print the alphabet
Learn to use the while loop for repetition.
Compare for and while
A loop to count
Blast off 2 ways
Doubling a value
An endless loop
Ending a total loop with a sentinel value
Ending a total loop by asking if there are more
Display "pass" or "fail" for each grade
Finding the smallest and largest
Learn to use the do loop for repetition.
Counting
Using a do loop to force a valid response
A function half
Function is after main
A function to print area
Arguments must match parameters
Functions can call other functions
A menu driven program
Learn to work with arrays in Java.
Input 3 numbers
Input and Arrange
Names of Months
Table of Months and days
Fast Food menu
Learn to create a class in Java.
Creating a Class
Learn to read and write text files in Java.
Inches to Centimeters table
Inches to Centimeters file
Reads a text file and displays it
Read a text file and parses: Reads a text file of name and year born, parses it and displays name and age