Hi There!

I'm Dan Schlegel, an Associate Professor in the Computer Science Department at SUNY Oswego

Assignment 5: Three List Interpreters

Your task is to write three separate Java programs for this assignment, all pertaining to the storage and manipulation of lists. The first two will feature arrays. The last one will feature an ArrayList object.

Why do it?

By engaging in this programming challenge you will have an opportunity to do some array processing and some ArrayList processing, you will engage in working by analogy, and you will gain additional experience writing interpreters.

The Entrance

Review the given program, the NumberList program of the arrayplay package.

Problem 1: The NumberList program of the arrayplay package.

  1. Enter the given program in your Java/IntelliJ world.
  2. Create a data file of numbers called NumberSet.txt containing between 10 and 15 integers of your own choosing. Place the file in a directory called public_html/data inside your home directory.
  3. Run the program, and interact with it in much the same manner as I did in the example demo.

Problem 2: The WordList program of the arrayplay package.

  1. By analogy with the given program, write a program called WordList to store and manipulate words, character strings, in an array. Do so within the arrayplay package.
  2. Create a data file of words called WordSet.txt containing between 10 and 15 words of your own choosing. Place the file in a directory called public_html/data inside your home directory.
  3. Run the program, and interact with it in a manner analogous to the numeric demo.

Problem 3: The WordList program of the arraylistplay package.

  1. By analogy with the WordList program that you just wrote in the arrayplay package, write a program called WordList in the arraylistplay package which features an ArrayList object rather than the array object.
  2. Run the program, and interact with it in a manner analogous to the numeric demo.

The Exit

  1. The assignment is due April 22nd.
  2. Please post your work to you work site.
  3. Think for a little while about this assignment and your engagement with it. What did you learn that is conceptually significant? What did you learn that is technologically useful? What is your most salient thought about the assignment and your engagement with it?

Featured Demo

Featured Program