Algorithms and OOD (CSC 207 2013F) : EBoards

CSC207.01 2013F, Class 08: Some Basic Types: Numbers and Strings in Java


Overview

Admin

Minimalist vs. Maximalist ADT Design

Why Minimalist?

Why Maximalist?

Sam likes minimalist approaches, at least for novice implementers

Arrays, Continued

Vectors

Java provides Vectors, which are dynamic arrays.

Declare

   Vector<TYPE> name;

Initialize

    new Vector<TYPE>(SIZE)

Set

    name.set(*index*, *val*)

Get

Length? (# elements vs capacity)

Strings

What are strings? (Purpose/Philosophy)

Numbers

Not covered

Copyright (c) 2013 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.