Intro to Java

Schedule

  • Introductions

  • Hello World
  • A little Java history
  • Terminology
  • Basics
  • Object Oriented Topics
  • Conditionals
  • Loops
  • Recursion
  • Object Oriented Exercise

Introductions

  • Travis

  • TA's

  • You!

Hello World

  • Why?

  • Open IntelliJ

  • Type the code

  • Run it!

  • Break it down

The history of Java (lite)

  • Sun =>  Oracle

  • James Gosling

  • Write Once, Run Anywhere

  • Compile to Bytecode

  • Run on JVM

Terminology

  • Variables

  • Primitives

  • Objects

  • Methods

Primitives

  • int

  • double

  • long

  • short

  • float

  • char

  • byte

  • boolean

Objects

  • Array

  • String

  • Anonymous primitives and Objects

Objects

  • Primitives all have Objects associated

  • Object's methods

  • String

  • Single Inheritance

  • Arrays

  • Lists

  • Maps

Coding

Exercise 2

 

A note about generics

Object Orientated Terminiology

  • Classes

    • attributes

    • methods

  • Abstract

  • Interfaces

  • Exercises

Conditionals

  • If statement
  • Else
  • {} optional
  • Comparison operators
  • Boolean operators
  • Grouping and short-circuit
  • Exercise

Loops

  • for

  • for each

  • while

  • Exercise

Additionally

  • Recursion

    • Discussion

    • Exercise

  • Exceptions

    • Discussion

    • Exercise

  • Visibility

    • Discussion

    • Exercise

  • Anonymous 

    • Classes

    • Methods

  • Generics

Object Oriented Exercise!

Lets just code through it

Intro To Java 2/28/15

By Travis Himes

Intro To Java 2/28/15

  • 1,242