11-18 Class Notes CS 107

11-18 Class Notes CS 107 - displaying letters. 11-18 Class...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Program #6 has been posted and is due Wed 11/30, which is slightly less than 2 weeks. Announcements: Questions? Palindrome checker iteratively and recursively; Intuition for Linked Lists Last Time: Discussion of Program #6 Sample program using ArrayList Time Permitting: Continuation of Linked Lists Today: To use ArrayList, you will likely need the following: 1. Import the java library at the top of your code: import java.util.ArrayList; ArrayLists What are things we need to be able to do? "Switch gears" between eliminating words, to choosing and
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: displaying letters. 11-18 Class Notes CS 107 Friday, November 18, 2011 3:17 PM CS 107 Fall 2011 Page 1 2. Declare the ArrayList, giving the type you will be using: ArrayList<String> dictionary; 3. Use the following methods to add, remove and retrieve elements: dictionary.add( someString ); dictionary.get( someIndex ); dictionary.remove( someIndex ); Now let's write a sample program using these ideas. [See code developed in class] Sample Program Linked Lists Linked Lists (cont) CS 107 Fall 2011 Page 2 CS 107 Fall 2011 Page 3 CS 107 Fall 2011 Page 4...
View Full Document

Page1 / 4

11-18 Class Notes CS 107 - displaying letters. 11-18 Class...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online