Tutorials In This Series
Lesson 1 - Getting Started
In this lesson we look at how to set up your machine to get started programming in Java. Locating and installing the Java Developers’s Kit (jdk) and the integrated development environment Eclipse are demonstrated.
Lesson 2 - Data Types and Arithmetic Expressions
Declare variables using the 8 primitive data types. Legal and conventional naming of identifiers. Literal constants, defining constants with “final”, and using the arithmetic operators, assignment statements, and short-cut operators.
Lesson 3 - Flow of Control - Selection
In this lesson you will learn how to create boolean expressions using the relational operators, and how these are used in the selection statements to control the flow of the program.
Lesson 4 - Flow of Control Repitition
Using the repetition (looping) statements. The while, do-while, and for loop are examined, along with the break and continue statements. Java’s labeled break and continue are included as well. The last video in this lesson looks at problem solving with repetition and selection, and some cool features of Eclipse are demonstrated.
Lesson 5 - Misc. Java Topics
A few topics outside the flow of the other lessons; these videos begin to set the stage for learning the more complex parts of the Java language.
Lesson 6 - Arrays
Arrays are blocks of dynamically allocated memory that can be used to store multiple variables of a single data type. The enhanced for-loop is presented as an easier way to iterate through the elements of an array. Arrays can be one-dimensional, sometimes called a list, or 2-D, in the shape of a table, or of a higher dimension. Arrays of primitives, or objects can be created and manipulated. Non-rectangular arrays, or ragged arrays, are also presented.
Lesson 7 - Static Methods
We can divide up the work by creating functional modules, which in Java are called methods. Static methods that are called from the main method are demonstrated.
Lesson 8 - Defining a Class
The creation of a new abstract data type - a class. Step-by-step, starting from scratch and adding one mechanism at a time. This is where we go from procedural programming to object-oriented programming.
Lesson 9 - Procedural vs. OO Programming
A problem to be solved is presented that has a procedural solution and an object-oriented solution. It is solved using both approaches. This lesson is important for procedural programmers who are transitioning to OO programming.
Lesson 10 - Static Data and Methods
Look at the concept of static data and methods now that we have created some classes and understand the concept of creating objects dynamically from the class definition.
Lesson 11 - Inheritance
Starting from a blank page, each concept in inheritance is added to a set of sample classes, and described. The IS A relationship (inheritance) is contrasted with the HAS A relationship (composition).
Lesson 12 - Interfaces
An interface can be used to define the methods that a class will expose to its users. It contains no functional parts – only abstract method signatures. Constants may be defined in an interface, but this is now done mostly in classes. Interface names can be used as compile time data types, giving us the second form of polymorphism.
Lesson 13 - Packages
As the projects get larger, you will need to organize the classes into packages of classes that are somehow related. A package is simply a folder (directory) where you will choose to maintain the related classes. A package statement is used to indicate where the class file will reside, and an import statement is used to indicate where the class is so that it can be used. The unnamed package and the java.lang package do not need an import statement.
|