Computer Science 210
Data Structures
Fall 2018, Siena College
Lecture 03: Java Review
Date: Monday, September 10, 2018
Agenda
- Announcements
- One more week to finish up the review assignment from the zyBook
- Please finish up the background survey (see your email), if you haven't done it yet
- I need all Lab 0: Setting Up submissions by this afternoon
- Please bring laptops to my office or to lab this week if you
want to use git and GitHub on them, and need some help to get set up.
- Note the Examples link on each page,
and the list of each day's examples on the lecture pages.
- Problem Set 1 out
- Completing our example for Java review: vertex search on METAL data
- Additional examples for arrays, methods, and classes
Terminology
- custom class
- array
- constructor
- instance variable/field
- method
- accessor method
- mutator method
- formal parameters
- actual parameters
- method call
- return type
- return value
- array declaration
- array construction
- object construction
- access array elements
- methods (a.k.a. function, procedures, subroutines, subprograms)
- method header
- method body
- method call
- parameters (a.k.a. arguments)
- formal parameter
- actual parameter
- return type
- return value
- classes
- fields, instance variables
- methods, member methods
- object-oriented programming
- objects
- encapsulate
- constructor
- accessor method
- mutator method
- memory diagram
- class variable
Examples