Git Product home page Git Product logo

intro-java's Introduction

Introduction to Java

Topics (part 1)

The following topics explain basic principle of programming.

What is programming:

  • Introduction
  • Why learn to program
  • What is programming
  • How to learn programming
  • What does a developer / programmer do

Material:

  • Slides
  • shorten these slides?

What Is Java?

  • Java is not just an isle
  • Translating โ‡” Compiling
  • The IDE (an overview)
  • Our first program
  • Running the program
  • Analyzing the code

Material:

Data Types

  • Variables
  • Variable names
  • Data types
    • String
    • int
    • boolean
    • float
  • Declaration and initialization
  • Print with different data types
  • Primitive types

Material:

Operators

  • Operators
  • Assignment
  • Arithmetic
  • Compound assignment
  • Increment / Decrement
  • Relational
  • Logic

Material:

Decision Statements

  • Input
    • Scanner
  • if
  • Conditions
    • Chaining
  • Boolean expressions
  • Number comparison
  • else
  • else if
  • switch/case
  • switch/case vs if

Material:

Loops

  • for
  • while
  • do/while
  • shortened for (foreach)

Material:

Methods / Scope

  • Methods
    • Why do we need methods
    • Structure
    • Example
  • Scope

Material:

Strings

  • Using Scanner to read strings
  • Comparing String
  • Operations on single characters

Material:

ArrayLists

  • Why using ArrayList
  • Accessing / Updating of ArrayList
  • ArrayList and loops
  • Exercises

Material:

Middle-course review

This is a list of questions that covers the topics taught so far.

Topics (part 2)

The following topics explain the Object Oriented Programming model of Java.

Using Classes

This lesson provides an overview of classes, objects and references. The focus is on using existing classes.

  • Classes and Objects
  • Properties and Methods
  • Using Classes and Objects
  • References

Material:

  • Slides
  • Exercises with the Java Standard library
  • Solutions for the exercises with the Java Standard Library
  • The "School" library: teachers, students and homework
  • Exercises with the "School" library
  • Solutions for exercises with the "School" library

Implementing Classes

This lesson provides basic information on how to write your own classes.

  • How to write your own class
  • Writing the constructor
  • Writing properties
  • Writing methods

Material:

Class Scope / this

  • Repetition of scope
  • Method scope / Parameters
  • Class Scope
  • this keyword

Material:

Inheritance and Interfaces

This lesson is a continuation of the previous, where additional concepts are presented in more details and guidelines and examples are provided on how to write your own classes with inheritance and interfaces.

  • Inheritance
  • Subclasses
  • Examples (bikes, motorbikes, mountain bikes)
  • Overriding methods
  • Interfaces
  • Examples (animals, cats, dogs)

Material:

More

Summary

  • Add further reading material

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.