IT 114: Introduction to Java
Class 17

Topics

Tips and Examples

Review

New Material

Homework 6

Homework 6 is due this Sunday at 11:59 PM.

You will find the assignment here.

If you have a problem or a question, make a post on the Class Discussion Area.

Homework 6

I have posted homework 6 here.

It is due this coming Sunday at 11:59 PM.

Mid-term

The mid-term exam will be given on Monday, March 23rd.

It will consist of questions like those on the quizzes along with questions asking you to write short segments of Java code.

60% of the points on this exam will consist of questions from the Ungraded Class Quizzes.

The other 40% will come from four questions that ask you to write a short segment of code.

The last class before the exam, Friday, March 13th, will be a review session.

You will only be responsible for the material in the Class Notes for that class on the exam.

The Mid-term is a closed book exam.

Due Date for Homework Assignments 2 - 6

The due date for homework assignments 2 - 6 is Friday, March 20th at 11:59 PM.

It is also the due date for Class Exercises 2 - 17

That is the Friday of the Spring Break.

Any of these assignments submitted after that date will receive a score of 0.

Tips and Examples

Never Assume Your Code Works

Review

Objects

Strings

We Have Been Defining Unusual Classes

Two Kinds of Methods

Dot Notation

String Methods

charAt(index)

equals(string)

contains(text)

length()

replace(text_1, text_2)

split(text)

startsWith(text) and endsWith(text)

substring(start_index, stop_index

toLowerCase() and toUpperCase()

trim()

New Material

The Empty String

Strings Cannot Be Changed

Garbage Collection

Strings in Memory

ASCII

Unicode

Representing Unicode Values

Comparing Strings

The String compareTo()Method

Packages

Using Java Packages

Importing Packages

Interactive Programs

Using a Scanner Objects

Scanner Methods

Sample Interactive Program

Class Quiz

Attendance

Class Exercise