HW1 -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ---------------------------------------------------------------------HW#1 SPECS CS108, SPRING 2009 ---------------------------------------------------------------------HW#1 SPECS Write a program that performs the following tasks. (You can either use "classical" Vectors, or "generics" Vectors, for HW#1.) * Ask the user to input 10 String values, one at a time. For each inputted data item, store it into a Vector. * The program should then output all of the user's data items, by using the Vector class's .toString() instance method. * The program should then output all of the user's data items again. But this time, it should rely on program code that you write yourself, to "manually" iterate through the data. (That is, it should look at and output each data item, one at a time, WITHOUT using toString.) ---------------------------------------------------------------------End Of File ...
View Full Document

This note was uploaded on 08/17/2011 for the course CS 108 taught by Professor Ivanbajic during the Spring '09 term at San Diego.

Ask a homework question - tutors are online