Basic HTML version of Foils prepared June 5 99

Foil 53 Data Structures

From Java Language in the Computer Science Curriculum ADMI Tutorial Duluth Minnesota -- June 3 99. by Geoffrey C. Fox


1 Java has classes for a rich set of data structures.
  • Once arrays are created, they cannot change size. But the class Vector can increase and decrease in size by adding and deleting elements.
  • Strings cannot be changed at all once they are created. The Stringbuffer class does allow one to change the contents in place.
  • The class HashTable creates a structure that maps keys to values.
  • A subclass of HashTable is Properties, which can create and manipulate property lists.
  • There is a class Stack for traditional stack structures.
  • There are classes for Dates and Calendars.
  • There are classes StringTokenizer and StreamTokenizer which usefully parse strings or streams to take out floating point numbers and identifiers as single entities.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Jun 5 1999