These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

JAVA01/Counting Characters In All Arguments

Classnotes | JAVA01 | RecentChanges | Preferences

Return to your previous character counting problem. Now modify that program (call it StrLen2.java) such that it counts all the elements in an array and prints them out.

For example, if I ran the program

 C:\> java StrLen? bob joe fred edgar

I would get

 'bob' : 3
 'joe' : 3
 'fred' : 4
 'edgar' : 5



Classnotes | JAVA01 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited May 29, 2003 12:51 am (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.