java programming

Objectives:

In Unit 3 we will enter our study of the Java Programming Language. We will start with Java in the context of a 2D world with "Karel the Dog". Karel represents an object that can move about the world and add/remove markers. While these are elemental scenarios, there are five key concepts of Java you will work with:

In the second part of this unit we will use the Java Language with the Processing IDE. Processing was developed at MIT for the purpose of combining art, animation, data visualization, and Java programming. Processing is used by MIT, Georgia Tech, and many other Universities for rapid prototyping for apps, research, and electronic devices.

The goals in this lesson are to develop Java code for drawing images, animation, and event based game loops. This Unit uses Object Orientated programming extensively and applies functions and for loops.

Key Concepts of Java/Programming

  1. Java executes commands sequentially.

  2. How to define a Method in Java

  3. Use For Loops to repeat code when you know the length of the problem.

  4. Use While Loops to repeat code when you do not know the length of the problem.

  5. Conditionals like if and if/else allow the program to make decisions

  6. Use of variables such as integers and doubles to represent position, color, direction, and velocity

  7. Use of Commands to draw Shape Elements in Java

  8. Defining Functions with parameters to encapsulate drawing sequences

  9. Use of Object Orientated Programming and Inheritance for Animation and Game Design

  10. Project planning and Design Process