Assignment 3

3.1

Implement the following methods on strings. Make efforts to avoid creating temporary objects if possible.

3.2

Add the following methods to the MyLinkedList class.

3.3

Design and implement a class for students' attendance lists. Each student has a name, a SSN, and a counter that tells the number times the student has attended the class. The user of an attendance list should be able to add new students to the list, and check attendance.

3.4

Extend the class Stack to provide a new method called pushdown(i) that duplicates the top element and pushes the copy i elements down. For example, let s be a stack with three elements [a,b,c], where a is the top element. After the operation s.pushdown(2), the stack becomes [a,b,a,c].

3.5
Review the following Java concepts and keywords: class, reference, object, method, constructor, call-by-value, signature, overloading, inheritance, overriding, control access, this, and super.