CSCI 2341 Submission 04
Linked Nodes of Names and Integer Squares
| Supplied file(s) (copy from $sup04) |
DemoNamesAndSquares.jar (the demo executable)NamesAndSquares.txt (the TextItems file of program
description) Node.java (the generic Node class to be
used for both names and integers)
|
|---|---|
| Files to submit |
NamesAndSquares.jar (your executable jar file)NamesAndSquares.java (your source code file)my_tests.sh (your completed testing script)
|
| Where to put them | Copy them to your u##/submissions/s04 folder
|
| When they're due | Sun, Nov 16, 2025 @11:59pm |
This week the program you must develop is designed to increase your comfort level in working with simple linked structures. In particular, you will write a program that reads and processes input from a textfile, and each value input from the file may be a name (that is, a string) or an integer.
DemoNamesAndSquares.jar, run
it first with no command-line input, and study the program description.
Node.java
file and create and manipulate appropriate sequences of linked nodes
using the Node class in that file.
submissions/s04 directory in your u##
account.
Node class you can have one sequence of
linked nodes for the integer values and a second sequence of linked nodes
for the names, with both using the same Node class.
NumberFormatException to
distinguish between integer and name values read from the file.